From: Alexander Ebert Date: Wed, 12 Jun 2013 17:28:28 +0000 (+0200) Subject: Disabled redirect for ACP requests X-Git-Tag: 2.0.0_Beta_4~56^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f7d2142b6d3fb57d388ad62c39a1dbc430d2a556;p=GitHub%2FWoltLab%2FWCF.git Disabled redirect for ACP requests --- 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'];