This commit is contained in:
fen 2013-12-10 11:54:17 +08:00
commit 7e68a303a8

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']);
}
/**