diff --git a/var/Typecho/Request.php b/var/Typecho/Request.php index 1ad305c4..d53fb341 100644 --- a/var/Typecho/Request.php +++ b/var/Typecho/Request.php @@ -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']); } /**