mirror of
https://github.com/typecho/typecho.git
synced 2025-03-25 12:29:43 +01:00
fixed #97
This commit is contained in:
parent
ed2b3590a4
commit
8e26e1f646
@ -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']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user