diff options
author | Andrey Andreev <narf@devilix.net> | 2016-07-25 09:28:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-25 09:28:21 +0200 |
commit | a270d6853aff2f8ea7ef2d5d78329dd458e5ad36 (patch) | |
tree | f784bf099a15664d986078facf97e6951af66fc1 /system | |
parent | f461143b3336b78263ce473e283d0c67d9f7c111 (diff) | |
parent | 1dbe93713f138ce24f971b18ac49f6cc627be1ea (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; } |