diff options
author | Andrey Andreev <narf@devilix.net> | 2016-07-25 09:28:21 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2016-07-25 09:30:37 +0200 |
commit | 85f3d1ae7fb2da9e0dd364cc91d623040f8b3666 (patch) | |
tree | 9e366a3df57c648ee9761377d5c6969931c1de48 /system | |
parent | fd128d536fa08cf7668a232aaa2fd8fce30b8ea2 (diff) |
Merge pull request #4724 from tianhe1986/develop_is_https_strtolower
Compare X-Forwarded-Proto case-insensitively
Diffstat (limited to 'system')
-rw-r--r-- | system/core/Common.php | 2 |
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; } |