From d9dce27efbe7cffa4773ecc696e6796ad3b86cd5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 27 May 2022 13:38:33 +0200 Subject: [PATCH] Remove enforced redirect of `login` and `index` controller in ACP to the `wcf` application It is not clear why this was added in d49006fac289699c925a6d5644f102b7ebfc972c, but it does not appear to still be required. The login check in WCFACP correctly redirects to the `wcf` app even if an application controller is requested. The index controller redirect was cleaned up in the previous commit. --- .../lib/system/request/RequestHandler.class.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index 65f13ce854..68d7452e03 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -160,20 +160,6 @@ final class RequestHandler extends SingletonFactory } else { $controller = $routeData['controller']; - if ( - $this->isACPRequest() - && ($controller === 'login' || $controller === 'index') - && $application !== 'wcf' - ) { - HeaderUtil::redirect( - LinkHandler::getInstance()->getLink(\ucfirst($controller)), - true, - false - ); - - exit; - } - $classApplication = $application; if ( !empty($routeData['isDefaultController']) -- 2.20.1