From dbf1729c79b3f19eacd0b915a4522c3e60b5aa02 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 23 Jun 2022 16:53:50 +0200 Subject: [PATCH] Ensure that RouteHandler strips the `isDefaultController` key from $routeData --- .../install/files/lib/system/request/RequestHandler.class.php | 1 + 1 file changed, 1 insertion(+) 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()) { -- 2.20.1