Remove dead branch in ControllerMap::isDefaultController()
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 1 Jun 2022 15:00:55 +0000 (17:00 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 1 Jun 2022 15:03:17 +0000 (17:03 +0200)
Since the previous changes it is impossible for an entry `''` to exist in the
custom URL mapping, causing this branch to never be taken.

This essentially reverts e6fac1cae9428760436179efc10cc7989c2d64b9.

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

index f5f1aa70bba81e4f449db80b5fa948618f96d5d8..8b58e68353137e80a1a0d8a67351f1e1915e9317 100644 (file)
@@ -309,14 +309,6 @@ class ControllerMap extends SingletonFactory
                     return false;
                 }
 
-                if (
-                    $matches['controller'] == $this->landingPages[$application]['controller']
-                    && isset($this->customUrls['lookup'][$application][''])
-                    && $this->customUrls['lookup'][$application][''] !== $controller
-                ) {
-                    return false;
-                }
-
                 $controller = $matches['controller'];
             }
         }