From da0f0e8ec4ae8c93c5930b6f3ff941674911843a Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sun, 9 Dec 2012 00:24:46 +0100 Subject: [PATCH] Fixed broken to top/bottom links --- wcfsetup/install/files/lib/system/WCF.class.php | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.20.1