From d49006fac289699c925a6d5644f102b7ebfc972c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 23 Apr 2017 16:06:57 +0200 Subject: [PATCH] Force redirect to core's login/index page --- .../files/lib/system/request/RequestHandler.class.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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); -- 2.20.1