Issue 8383 (again): Finally fixes the double scheme problem

This commit is contained in:
Michael 2020-03-10 06:22:30 +00:00
parent 2b5ef80912
commit 6e26ece3de
1 changed files with 5 additions and 1 deletions

View 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;