diff options
author | maltzurra <heas666@hotmail.com> | 2013-02-14 11:12:37 +0100 |
---|---|---|
committer | maltzurra <heas666@hotmail.com> | 2013-02-14 11:12:37 +0100 |
commit | 7219232771ee28f6f18248cfffd4fdffa570dfb7 (patch) | |
tree | a0ce9468a3402ba707ba0ca5c4b68353b3c23864 /system/core/Common.php | |
parent | c2268711a27809575f82b21e64fde6cd953ef7f9 (diff) |
Update system/core/Common.php
Updated is_https() to avoid "NULL" or "0" values to set HTTPS.
Diffstat (limited to 'system/core/Common.php')
-rw-r--r-- | system/core/Common.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/core/Common.php b/system/core/Common.php index 258cd4967..136dd521c 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -343,7 +343,7 @@ if ( ! function_exists('is_https')) */ function is_https() { - return ( ! empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off'); + return (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) === 'on'); } } @@ -713,4 +713,4 @@ if ( ! function_exists('function_usable')) } /* End of file Common.php */ -/* Location: ./system/core/Common.php */
\ No newline at end of file +/* Location: ./system/core/Common.php */ |