From: Alexander Ebert Date: Sun, 23 Apr 2017 14:06:57 +0000 (+0200) Subject: Force redirect to core's login/index page X-Git-Tag: 3.0.5~47 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d49006fac289699c925a6d5644f102b7ebfc972c;p=GitHub%2FWoltLab%2FWCF.git Force redirect to core's login/index page --- diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index 0bad23ca7f..db7514d700 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -148,6 +148,15 @@ class RequestHandler extends SingletonFactory { unset($routeData['pageType']); } else { + if ($this->isACPRequest() && ($controller === 'login' || $controller === 'index') && $application !== 'wcf') { + HeaderUtil::redirect( + LinkHandler::getInstance()->getLink(ucfirst($controller)), + true, + false + ); + exit; + } + $classData = ControllerMap::getInstance()->resolve($application, $controller, $this->isACPRequest()); if (is_string($classData)) { $this->redirect($routeData, $application, $classData);