From: Michael Date: Sat, 25 Jul 2020 08:07:22 +0000 (+0000) Subject: Fix Notice: "Undefined index: host" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bdbe6771fdc5aa164258f644821f0b12a012290d;p=friendica.git Fix Notice: "Undefined index: host" --- diff --git a/src/Network/Probe.php b/src/Network/Probe.php index c41006b128..3c43fb28ea 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -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'] ?? '/';