From f7d2142b6d3fb57d388ad62c39a1dbc430d2a556 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 12 Jun 2013 19:28:28 +0200 Subject: [PATCH] Disabled redirect for ACP requests --- .../system/request/RequestHandler.class.php | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index 8c729f1a09..b0b8e59666 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -120,27 +120,27 @@ class RequestHandler extends SingletonFactory { exit; } } - } - - // check if accessing from the wrong domain (e.g. "www." omitted but domain was configured with) - $applicationObject = ApplicationHandler::getInstance()->getApplication($application); - if ($applicationObject->domainName != $_SERVER['HTTP_HOST']) { - // build URL, e.g. http://example.net/forum/ - $url = FileUtil::addTrailingSlash(RouteHandler::getProtocol() . $applicationObject->domainName . RouteHandler::getPath()); - - // add path info, e.g. index.php/Board/2/ - $pathInfo = RouteHandler::getPathInfo(); - if (!empty($pathInfo)) { - $url .= 'index.php' . $pathInfo; - } - // query string, e.g. ?foo=bar - if (!empty($_SERVER['QUERY_STRING'])) { - $url .= '?' . $_SERVER['QUERY_STRING']; + // check if accessing from the wrong domain (e.g. "www." omitted but domain was configured with) + $applicationObject = ApplicationHandler::getInstance()->getApplication($application); + if ($applicationObject->domainName != $_SERVER['HTTP_HOST']) { + // build URL, e.g. http://example.net/forum/ + $url = FileUtil::addTrailingSlash(RouteHandler::getProtocol() . $applicationObject->domainName . RouteHandler::getPath()); + + // add path info, e.g. index.php/Board/2/ + $pathInfo = RouteHandler::getPathInfo(); + if (!empty($pathInfo)) { + $url .= 'index.php' . $pathInfo; + } + + // query string, e.g. ?foo=bar + if (!empty($_SERVER['QUERY_STRING'])) { + $url .= '?' . $_SERVER['QUERY_STRING']; + } + + HeaderUtil::redirect($url, true); + exit; } - - HeaderUtil::redirect($url, true); - exit; } $controller = $routeData['controller']; -- 2.20.1