Fix Notice: "Undefined index: host"

This commit is contained in:
Michael 2020-07-25 08:07:22 +00:00
parent 398e65d66b
commit bdbe6771fd

View file

@ -1784,6 +1784,9 @@ class Probe
$base = $xpath->evaluate('string(/html/head/base/@href)') ?: $base;
$baseParts = parse_url($base);
if (empty($baseParts['host'])) {
return $href;
}
// Naked domain case (scheme://basehost)
$path = $baseParts['path'] ?? '/';