Simplify PackageUpdateServer::isTrustedServer()
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 12 May 2022 12:33:40 +0000 (14:33 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 12 May 2022 12:33:40 +0000 (14:33 +0200)
wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php

index 831a6c1bb789875f503856774d0713a9c3b19d43..438c567a6e3527a11593989828bb02e86b354353 100644 (file)
@@ -345,9 +345,7 @@ class PackageUpdateServer extends DatabaseObject
      */
     final public function isTrustedServer()
     {
-        $host = Url::parse($this->serverURL)['host'];
-
-        return $host === 'update.woltlab.com';
+        return $this->isWoltLabUpdateServer();
     }
 
     /**