summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authortianhe1986 <w1s2j3229@163.com>2016-07-22 18:19:00 +0200
committertianhe1986 <w1s2j3229@163.com>2016-07-22 18:19:00 +0200
commit1dbe93713f138ce24f971b18ac49f6cc627be1ea (patch)
treef784bf099a15664d986078facf97e6951af66fc1 /system
parentf461143b3336b78263ce473e283d0c67d9f7c111 (diff)
Call strtolower before comparing $_SERVER['HTTP_X_FORWARDED_PROTO'].
Signed-off-by: tianhe1986 <w1s2j3229@163.com>
Diffstat (limited to 'system')
-rw-r--r--system/core/Common.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index b87ce4d62..85e18e406 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -355,7 +355,7 @@ if ( ! function_exists('is_https'))
{
return TRUE;
}
- elseif (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https')
+ elseif (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) === 'https')
{
return TRUE;
}