From f9211a56b4ffe1a98ae32085a1b44fe6966fe00f Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 19 Oct 2011 14:36:01 +0200 Subject: [PATCH] Included protocol and domain in base tag Internet Explorer requires an absolute URI with protocol and domain as value for base-tag - whereas any other browser is happy with just a relative URI :/ --- wcfsetup/install/files/lib/system/WCFACP.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wcfsetup/install/files/lib/system/WCFACP.class.php b/wcfsetup/install/files/lib/system/WCFACP.class.php index a2dbd8df47..0d75545cb6 100644 --- a/wcfsetup/install/files/lib/system/WCFACP.class.php +++ b/wcfsetup/install/files/lib/system/WCFACP.class.php @@ -96,6 +96,13 @@ class WCFACP extends WCF { $phpSelf = substr($phpSelf, 0, $pos); } + // get protocol and domain name + $protocol = 'http://'; + if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' || $_SERVER['SERVER_PORT'] == 443) { + $protocol = 'https://'; + } + $phpSelf = $protocol . $_SERVER['HTTP_HOST'] . $phpSelf; + self::getTPL()->assign(array( 'baseHref' => $phpSelf, 'quickAccessPackages' => $this->getQuickAccessPackages(), -- 2.20.1