Force a proper URL for *.woltlab.com package update servers
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 19 Aug 2020 13:18:30 +0000 (15:18 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 19 Aug 2020 14:18:06 +0000 (16:18 +0200)
wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php

index 45b06e43f92ba43c526ca8e2f9a54667f929d248..251e90988208c6a170ddb8ab13e62b2503c3921d 100644 (file)
@@ -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/';
+               }
        }
        
        /**