Remove useless branch in ControllerMap::isDefaultController()
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 1 Jun 2022 09:30:05 +0000 (11:30 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 1 Jun 2022 09:30:05 +0000 (11:30 +0200)
commit7dbd1d54ac5432922e290d0c16992c104c5cec6a
treebf457593a49f7135662e3ade72113edf86fd4833
parentdb4adc87bd656d5a089b30cd512558890a55abd2
Remove useless branch in ControllerMap::isDefaultController()

The previous change with `str_starts_with()` makes it pretty evident that this
condition is redundant with the regular expression above: The regular
expression also ensures that the `$controller` starts with `__WCF_CMS__` and at
the end of that branch the `$controller` will always be stripped of the
language ID suffix.
wcfsetup/install/files/lib/system/request/ControllerMap.class.php