From 1936b0d0e462a59f9373af02204879f809b3bb43 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 19 Aug 2020 15:18:30 +0200 Subject: [PATCH] Force a proper URL for *.woltlab.com package update servers --- .../package/update/server/PackageUpdateServer.class.php | 7 +++++++ 1 file changed, 7 insertions(+) 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 45b06e43f9..251e909882 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 @@ -52,6 +52,13 @@ class PackageUpdateServer extends DatabaseObject { } parent::handleData($data); + + if ($this->isWoltLabUpdateServer()) { + $this->data['serverURL'] = 'http://update.woltlab.com/5.3/'; + } + if ($this->isWoltLabStoreServer()) { + $this->data['serverURL'] = 'http://store.woltlab.com/5.3/'; + } } /** -- 2.20.1