Update WoltLab update servers URLs to the `https` scheme in PackageUpdateServer
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 11 May 2022 13:26:44 +0000 (15:26 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 11 May 2022 13:30:12 +0000 (15:30 +0200)
wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php

index ab0cd7c8ab8c2001fcfae497e2756a789478bc05..acf5cb21f7829030704dd5cdc83eb8d1beeb1091 100644 (file)
@@ -65,10 +65,10 @@ class PackageUpdateServer extends DatabaseObject
         }
 
         if ($this->isWoltLabUpdateServer()) {
-            $this->data['serverURL'] = "http://update.woltlab.com/{$prefix}{$officialPath}/";
+            $this->data['serverURL'] = "https://update.woltlab.com/{$prefix}{$officialPath}/";
         }
         if ($this->isWoltLabStoreServer()) {
-            $this->data['serverURL'] = "http://store.woltlab.com/{$prefix}{$officialPath}/";
+            $this->data['serverURL'] = "https://store.woltlab.com/{$prefix}{$officialPath}/";
         }
         if ($this->isWoltLabUpdateServer() || $this->isWoltLabStoreServer()) {
             $this->data['isDisabled'] = 0;
@@ -112,13 +112,13 @@ class PackageUpdateServer extends DatabaseObject
 
         if (!$woltlabUpdateServer) {
             $packageServer = PackageUpdateServerEditor::create([
-                'serverURL' => "http://update.woltlab.com/{$officialPath}/",
+                'serverURL' => "https://update.woltlab.com/{$officialPath}/",
             ]);
             $results[$packageServer->packageUpdateServerID] = $packageServer;
         }
         if (!$woltlabStoreServer) {
             $packageServer = PackageUpdateServerEditor::create([
-                'serverURL' => "http://store.woltlab.com/{$officialPath}/",
+                'serverURL' => "https://store.woltlab.com/{$officialPath}/",
             ]);
             $results[$packageServer->packageUpdateServerID] = $packageServer;
         }