Skip to content

Commit

Permalink
Added support for SSL-Proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdesign committed Mar 8, 2014
1 parent 63afce1 commit 3f2e2b2
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -191,7 +191,7 @@ public static function secureConnection() {
if (self::$secure === null) {
self::$secure = false;

if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' || $_SERVER['SERVER_PORT'] == 443) {
if ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') || $_SERVER['SERVER_PORT'] == 443 || (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) {
self::$secure = true;
}
}
Expand Down

0 comments on commit 3f2e2b2

Please sign in to comment.