From b612180c22d2f1361f5647961483ecb3ce81f731 Mon Sep 17 00:00:00 2001 From: Art4 Date: Mon, 18 Nov 2024 14:33:26 +0000 Subject: [PATCH] check for path parts --- src/Network/Probe.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }