From: Tim Düsterhus Date: Thu, 12 May 2022 12:33:40 +0000 (+0200) Subject: Simplify PackageUpdateServer::isTrustedServer() X-Git-Tag: 6.0.0_Alpha_1~1309^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2b21848de185ff35e4bab6fffb165883b504b40d;p=GitHub%2FWoltLab%2FWCF.git Simplify PackageUpdateServer::isTrustedServer() --- 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(); } /**