]> git.mxchange.org Git - friendica.git/commitdiff
Issue 8383 (again): Finally fixes the double scheme problem
authorMichael <heluecht@pirati.ca>
Tue, 10 Mar 2020 06:22:30 +0000 (06:22 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 10 Mar 2020 06:22:30 +0000 (06:22 +0000)
src/Network/Probe.php

index 6c64f790ec71adad62e832a4036e774cb0cc1d5a..b5991934b4912d16caeec3b6b0204ca3631cc43f 100644 (file)
@@ -161,7 +161,11 @@ class Probe
                if ($curlResult->isSuccess()) {
                        $xml = $curlResult->getBody();
                        $xrd = XML::parseString($xml, false);
-                       $host_url = 'https://'.$host;
+                       if (!empty($url)) {
+                               $host_url = 'https://' . $host;
+                       } else {
+                               $host_url = $host;
+                       }
                } elseif ($curlResult->isTimeout()) {
                        Logger::info('Probing timeout', ['url' => $ssl_url], Logger::DEBUG);
                        self::$istimeout = true;