From: Alexander Ebert Date: Fri, 2 Jan 2015 15:01:29 +0000 (+0100) Subject: Removed old debug code X-Git-Tag: 2.1.0_Beta_3~46^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a2215d1c79001d5fd163feadc42a10d8bbb81815;p=GitHub%2FWoltLab%2FWCF.git Removed old debug code --- diff --git a/wcfsetup/install/files/lib/page/AbstractPage.class.php b/wcfsetup/install/files/lib/page/AbstractPage.class.php index 828f05a6be..93e81b76d3 100644 --- a/wcfsetup/install/files/lib/page/AbstractPage.class.php +++ b/wcfsetup/install/files/lib/page/AbstractPage.class.php @@ -186,13 +186,6 @@ abstract class AbstractPage implements IPage, ITrackablePage { // use $_SERVER['REQUEST_URI'] because it represents the URL used to access the site and not the internally rewritten one $requestURI = preg_replace('~[?&]s=[a-f0-9]{40}~', '', $_SERVER['REQUEST_URI']); - if (strpos($requestURI, '%') !== false) { - // DEBUG ONLY - if ($_SERVER['REMOTE_ADDR'] != '5.28.86.103') { - $requestURI = urldecode($requestURI); - } - // /DEBUG ONLY - } if (!StringUtil::isUTF8($requestURI)) { $requestURI = StringUtil::convertEncoding('ISO-8859-1', 'UTF-8', $requestURI); } @@ -221,15 +214,6 @@ abstract class AbstractPage implements IPage, ITrackablePage { } if ($redirect) { - if ($_SERVER['REMOTE_ADDR'] == '5.28.86.103') { - header('Content-Type: text/html; charset=utf-8'); - echo "
";
-					echo "

Redirect

"; - echo "Canonical: " . $this->canonicalURL . "\n"; - echo "RequestURL: " . $requestURI . "\n"; - exit; - } - $redirectURL = $this->canonicalURL; if (!empty($requestURL['query'])) { $queryString = $requestURL['query']; diff --git a/wcfsetup/install/files/lib/system/request/LinkHandler.class.php b/wcfsetup/install/files/lib/system/request/LinkHandler.class.php index ef033d4b8b..1db4ae1429 100644 --- a/wcfsetup/install/files/lib/system/request/LinkHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/LinkHandler.class.php @@ -66,8 +66,8 @@ class LinkHandler extends SingletonFactory { $abbreviation = 'wcf'; $anchor = ''; $isACP = $originIsACP = RequestHandler::getInstance()->isACPRequest(); - $encodeTitle = $forceWCF = $isRaw = false; - $appendSession = true; + $forceWCF = $isRaw = false; + $appendSession = $encodeTitle = true; // enforce a certain level of sanitation and protection for links embedded in emails if (isset($parameters['isEmail']) && (bool)$parameters['isEmail']) { @@ -110,12 +110,6 @@ class LinkHandler extends SingletonFactory { unset($parameters['forceWCF']); } - // DEBUG ONLY - if ($_SERVER['REMOTE_ADDR'] == '5.28.86.103') { - $parameters['encodeTitle'] = true; - } - // /DEBUG ONLY - if (isset($parameters['encodeTitle'])) { $encodeTitle = $parameters['encodeTitle']; unset($parameters['encodeTitle']);