Browse Source

fixed getSecureConnection after #1800

and 7ba6a06300
tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
9968098e8a
  1. 2
      framework/yii/web/Request.php

2
framework/yii/web/Request.php

@ -669,7 +669,7 @@ class Request extends \yii\base\Request
public function getIsSecureConnection()
{
return isset($_SERVER['HTTPS']) && (strcasecmp($_SERVER['HTTPS'], 'on') === 0 || $_SERVER['HTTPS'] == 1)
|| isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && strcasecmp($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https');
|| isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && strcasecmp($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') === 0;
}
/**

Loading…
Cancel
Save