Revert "Reject empty `controller` in ControllerMap::resolveCustomController()"
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 1 Jun 2022 11:47:55 +0000 (13:47 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 1 Jun 2022 11:47:55 +0000 (13:47 +0200)
The assumptions in the commit message are not currently valid: For a non-i18n
CMS page the RoutingCacheBuilder will clear out the custom URL.

This reverts commit 4a40217a1e5bfe9a2f7d9f4b7c485add6baa7213.

wcfsetup/install/files/lib/system/request/ControllerMap.class.php

index f5f1aa70bba81e4f449db80b5fa948618f96d5d8..011a3bf1f9e599d9ac45e48dc8fdd3abc0d0d022 100644 (file)
@@ -141,10 +141,6 @@ class ControllerMap extends SingletonFactory
      */
     public function resolveCustomController($application, $controller)
     {
-        if ($controller === '') {
-            throw new \InvalidArgumentException('The given controller must not be empty.');
-        }
-
         if (isset($this->applicationOverrides['lookup'][$application][$controller])) {
             $application = $this->applicationOverrides['lookup'][$application][$controller];
         }