From 2b21848de185ff35e4bab6fffb165883b504b40d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 12 May 2022 14:33:40 +0200 Subject: [PATCH] Simplify PackageUpdateServer::isTrustedServer() --- .../data/package/update/server/PackageUpdateServer.class.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php index 831a6c1bb7..438c567a6e 100644 --- a/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php +++ b/wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php @@ -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(); } /** -- 2.20.1