Ensure that RouteHandler strips the `isDefaultController` key from $routeData
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 23 Jun 2022 14:53:50 +0000 (16:53 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 23 Jun 2022 14:56:51 +0000 (16:56 +0200)
wcfsetup/install/files/lib/system/request/RequestHandler.class.php

index 3fad2d54de0cf5ee3d9a6f6a9bfc67360cf5b06c..8250deb25bc91e34647d70c2f5d4b834e4b19903 100644 (file)
@@ -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()) {