From: Tim Düsterhus Date: Mon, 30 May 2022 15:07:38 +0000 (+0200) Subject: Do not use RequestHandler::redirect() for controller-less ACP requests X-Git-Tag: 6.0.0_Alpha_1~1239 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ca776ae17a17d45922442bdec01009472ae24b6c;p=GitHub%2FWoltLab%2FWCF.git Do not use RequestHandler::redirect() for controller-less ACP requests Specifically do not pass the unknown `$routeData` which might not be correct for the IndexPage of `wcf`. see ed55fc721676e3a5b7cf52995c2f2701a4902f1e --- diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index a15451c7d4..d65337c9a0 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -123,7 +123,9 @@ final class RequestHandler extends SingletonFactory $routeData['controller'] = 'index'; if ($application !== 'wcf') { - $this->redirect($routeData, 'wcf', 'index'); + HeaderUtil::redirect(LinkHandler::getInstance()->getLink(), true, false); + + exit; } } } else {