This commit is contained in:
joyqi 2013-12-02 15:26:17 +08:00
parent ed2b3590a4
commit 8e26e1f646

View File

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