From: Marcel Werk Date: Sat, 8 Dec 2012 23:24:46 +0000 (+0100) Subject: Fixed broken to top/bottom links X-Git-Tag: 2.0.0_Beta_1~727 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=da0f0e8ec4ae8c93c5930b6f3ff941674911843a;p=GitHub%2FWoltLab%2FWCF.git Fixed broken to top/bottom links --- diff --git a/wcfsetup/install/files/lib/system/WCF.class.php b/wcfsetup/install/files/lib/system/WCF.class.php index c68ea40b24..61ee8afded 100644 --- a/wcfsetup/install/files/lib/system/WCF.class.php +++ b/wcfsetup/install/files/lib/system/WCF.class.php @@ -676,6 +676,10 @@ class WCF { } $path = str_replace('/index.php', '', str_replace($scriptName, '', $_SERVER['REQUEST_URI'])); + $encoding = mb_detect_encoding($path, 'ISO-8859-1,UTF-8', true); + if ($encoding != 'UTF-8') { + $path = StringUtil::convertEncoding($encoding, 'UTF-8', $path); + } $baseHref = self::getTPL()->get('baseHref'); return $baseHref . 'index.php' . $path . '#' . $fragment;