Permit insecure access to the package servers for 5.5
authorAlexander Ebert <ebert@woltlab.com>
Mon, 11 Sep 2023 15:13:04 +0000 (17:13 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 11 Sep 2023 15:13:04 +0000 (17:13 +0200)
wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php

index 91f1cab09f56c3614c3265dd7a4536d3767a77e0..a337710f89701e4b07331e081567b89eaff2d285 100644 (file)
@@ -67,15 +67,17 @@ class PackageUpdateServer extends DatabaseObject
 
         $prefix = ENABLE_ENTERPRISE_MODE ? 'cloud/' : '';
         $officialPath = \wcf\getMinorVersion();
+        $protocol = 'http';
         if (self::isUpgradeOverrideEnabled()) {
             $officialPath = WCF::AVAILABLE_UPGRADE_VERSION;
+            $protocol = 'https';
         }
 
         if ($this->isWoltLabUpdateServer()) {
-            $this->data['serverURL'] = "https://update.woltlab.com/{$prefix}{$officialPath}/";
+            $this->data['serverURL'] = "{$protocol}://update.woltlab.com/{$prefix}{$officialPath}/";
         }
         if ($this->isWoltLabStoreServer()) {
-            $this->data['serverURL'] = "https://store.woltlab.com/{$prefix}{$officialPath}/";
+            $this->data['serverURL'] = "{$protocol}://store.woltlab.com/{$prefix}{$officialPath}/";
         }
         if ($this->isWoltLabUpdateServer() || $this->isWoltLabStoreServer()) {
             $this->data['isDisabled'] = 0;