修正强制https错误

This commit is contained in:
joyqi 2013-12-10 11:13:56 +08:00
parent 5346434a2b
commit a7a7623203

View File

@ -651,7 +651,8 @@ class Typecho_Request
*/
public function isSecure()
{
return (isset($_SERVER['HTTPS']) && 'off' != $_SERVER['HTTPS']) || (isset($_SERVER['SERVER_PORT']) && 443 == $_SERVER['SERVER_PORT']);
return (!empty($_SERVER['HTTPS']) && 'off' != strtolower($_SERVER['HTTPS']))
|| (!empty($_SERVER['SERVER_PORT']) && 443 == $_SERVER['SERVER_PORT']);
}
/**