From: Alexander Ebert Date: Wed, 19 Oct 2011 12:36:01 +0000 (+0200) Subject: Included protocol and domain in base tag X-Git-Tag: 2.0.0_Beta_1~1680^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f9211a56b4ffe1a98ae32085a1b44fe6966fe00f;p=GitHub%2FWoltLab%2FWCF.git 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 :/ --- 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(),