diff options
-rw-r--r-- | inc/poche/Tools.class.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index 248a44d7..515a08aa 100644 --- a/inc/poche/Tools.class.php +++ b/inc/poche/Tools.class.php | |||
@@ -43,7 +43,9 @@ class Tools | |||
43 | || (isset($_SERVER["SERVER_PORT"]) | 43 | || (isset($_SERVER["SERVER_PORT"]) |
44 | && $_SERVER["SERVER_PORT"] == '443') // HTTPS detection. | 44 | && $_SERVER["SERVER_PORT"] == '443') // HTTPS detection. |
45 | || (isset($_SERVER["SERVER_PORT"]) //Custom HTTPS port detection | 45 | || (isset($_SERVER["SERVER_PORT"]) //Custom HTTPS port detection |
46 | && $_SERVER["SERVER_PORT"] == SSL_PORT); | 46 | && $_SERVER["SERVER_PORT"] == SSL_PORT) |
47 | || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) | ||
48 | && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'); | ||
47 | 49 | ||
48 | $serverport = (!isset($_SERVER["SERVER_PORT"]) | 50 | $serverport = (!isset($_SERVER["SERVER_PORT"]) |
49 | || $_SERVER["SERVER_PORT"] == '80' | 51 | || $_SERVER["SERVER_PORT"] == '80' |