From: Tim Düsterhus Date: Thu, 23 Jun 2022 14:53:50 +0000 (+0200) Subject: Ensure that RouteHandler strips the `isDefaultController` key from $routeData X-Git-Tag: 6.0.0_Alpha_1~1151^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dbf1729c79b3f19eacd0b915a4522c3e60b5aa02;p=GitHub%2FWoltLab%2FWCF.git Ensure that RouteHandler strips the `isDefaultController` key from $routeData --- diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index 3fad2d54de..8250deb25b 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -121,6 +121,7 @@ final class RequestHandler extends SingletonFactory $routeData = RouteHandler::getInstance()->getRouteData(); \assert(RouteHandler::getInstance()->isDefaultController() xor ($routeData['controller'] ?? false)); + \assert(!isset($routeData['isDefaultController'])); if (RouteHandler::getInstance()->isDefaultController()) { if ($this->isACPRequest()) {