From: Michael Date: Tue, 10 Mar 2020 06:22:30 +0000 (+0000) Subject: Issue 8383 (again): Finally fixes the double scheme problem X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6e26ece3de2f26cd0af15bfc39dc9a10f33e1396;p=friendica.git Issue 8383 (again): Finally fixes the double scheme problem --- diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 6c64f790ec..b5991934b4 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -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;