Fix call to `\str_ends_with()` in PackageUpdateServerAddForm
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 3 Feb 2022 11:17:32 +0000 (12:17 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 4 Feb 2022 15:14:40 +0000 (16:14 +0100)
wcfsetup/install/files/lib/acp/form/PackageUpdateServerAddForm.class.php

index bdc2f6c6863e7551af46f268f16b27cb2fcccfb8..2520a46eda788a5b6914cb6a5829b15242587e42 100755 (executable)
@@ -93,7 +93,7 @@ class PackageUpdateServerAddForm extends AbstractForm
             throw new UserInputException('serverURL', 'invalid');
         }
 
-        if (\str_ends_with(Url::parse($this->serverURL)['host'], '.woltlab.com', true)) {
+        if (\str_ends_with(\strtolower(Url::parse($this->serverURL)['host']), '.woltlab.com')) {
             throw new UserInputException('serverURL', 'woltlab');
         }