Use `str_starts_with()` in ControllerMap::isDefaultController()
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 1 Jun 2022 09:28:33 +0000 (11:28 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 1 Jun 2022 09:28:33 +0000 (11:28 +0200)
commitdb4adc87bd656d5a089b30cd512558890a55abd2
treede463a6c640bac88791bee52dfc07b2afc69986f
parent49bca1bf9e81158c6dcf2756327ba3f9acb6a4df
Use `str_starts_with()` in ControllerMap::isDefaultController()

This replacement is not semantically identical, because the previous version
effectively was a `str_contains()`. However the `__WCF_CMS__` marker always
appears at the start of the string, making the previous version a bug.
wcfsetup/install/files/lib/system/request/ControllerMap.class.php