From: Art4 Date: Mon, 18 Nov 2024 14:33:26 +0000 (+0000) Subject: check for path parts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b612180c22d2f1361f5647961483ecb3ce81f731;p=friendica.git check for path parts --- diff --git a/src/Network/Probe.php b/src/Network/Probe.php index ca2351afaf..fd76af350e 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -565,8 +565,9 @@ class Probe $nick = ''; $addr = ''; - $path_parts = explode('/', trim($parts['path'] ?? '', '/')); - if (is_array($path_parts)) { + if (array_key_exists('path', $parts) && strval($parts['path']) !== '') { + $path_parts = explode('/', trim($parts['path'], '/')); + $nick = ltrim(end($path_parts), '@'); $addr = $nick . '@' . $host; }