mirror of
https://github.com/typecho/typecho.git
synced 2025-03-20 01:49:40 +01:00
Merge branch 'master' of https://github.com/typecho/typecho
This commit is contained in:
commit
7e68a303a8
@ -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']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user