From 3f2e2b27e4c6e926ab864fb1bd501bc7afff1d15 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 8 Mar 2014 14:22:31 +0100 Subject: [PATCH] Added support for SSL-Proxies --- .../install/files/lib/system/request/RouteHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/request/RouteHandler.class.php b/wcfsetup/install/files/lib/system/request/RouteHandler.class.php index bafbdf85cd..c224f6052d 100644 --- a/wcfsetup/install/files/lib/system/request/RouteHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RouteHandler.class.php @@ -191,7 +191,7 @@ class RouteHandler extends SingletonFactory { 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; } } -- 2.20.1