summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2016-07-25 09:28:21 +0200
committerGitHub <noreply@github.com>2016-07-25 09:28:21 +0200
commita270d6853aff2f8ea7ef2d5d78329dd458e5ad36 (patch)
treef784bf099a15664d986078facf97e6951af66fc1 /system/core
parentf461143b3336b78263ce473e283d0c67d9f7c111 (diff)
parent1dbe93713f138ce24f971b18ac49f6cc627be1ea (diff)
Merge pull request #4724 from tianhe1986/develop_is_https_strtolower
Compare X-Forwarded-Proto case-insensitively
Diffstat (limited to 'system/core')
-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;
}