Removed old debug code
authorAlexander Ebert <ebert@woltlab.com>
Fri, 2 Jan 2015 15:01:29 +0000 (16:01 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 2 Jan 2015 15:01:29 +0000 (16:01 +0100)
wcfsetup/install/files/lib/page/AbstractPage.class.php
wcfsetup/install/files/lib/system/request/LinkHandler.class.php

index 828f05a6bee8c5bdb51c32db3ab1502cab8c3818..93e81b76d3697b37be34a65e20087d80e17b1adc 100644 (file)
@@ -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 "<pre>";
-                                       echo "<h3>Redirect</h3>";
-                                       echo "Canonical: " . $this->canonicalURL . "\n";
-                                       echo "RequestURL: " . $requestURI . "\n";
-                                       exit;
-                               }
-                               
                                $redirectURL = $this->canonicalURL;
                                if (!empty($requestURL['query'])) {
                                        $queryString = $requestURL['query'];
index ef033d4b8b76d86dc1cd4cbc7d35a36fd5ff9f6c..1db4ae1429eadb30180a4dcf8334ac988b4a8a42 100644 (file)
@@ -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']);