Support http over ssl for package update servers
authorTim Düsterhus <timwolla@googlemail.com>
Mon, 9 Dec 2013 17:14:06 +0000 (18:14 +0100)
committerTim Düsterhus <timwolla@googlemail.com>
Mon, 9 Dec 2013 17:14:06 +0000 (18:14 +0100)
wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServer.class.php

index 88b5e8eddfe622a8e7462d8869f766491055b865..303b845c7d811fbaaa4a89ce7ce62162e496c03e 100644 (file)
@@ -52,7 +52,7 @@ class PackageUpdateServer extends DatabaseObject {
                if (trim($serverURL)) {
                        if (!$parsedURL = @parse_url($serverURL))
                                return false;
-                       if (!isset($parsedURL['scheme']) || $parsedURL['scheme'] != 'http')
+                       if (!isset($parsedURL['scheme']) || ($parsedURL['scheme'] != 'http' && $parsedURL['scheme'] != 'https'))
                                return false;
                        if (!isset($parsedURL['host']))
                                return false;