Update src/Network/Probe.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Artur Weigandt 2024-11-18 22:40:34 +01:00 committed by GitHub
parent 4faad61a7c
commit 5ab976dd51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -565,7 +565,7 @@ class Probe
$nick = ''; $nick = '';
$addr = ''; $addr = '';
if (array_key_exists('path', $parts) && strval($parts['path']) !== '') { if (array_key_exists('path', $parts) && trim(strval($parts['path']), '/') !== '') {
$path_parts = explode('/', trim($parts['path'], '/')); $path_parts = explode('/', trim($parts['path'], '/'));
$nick = ltrim(end($path_parts), '@'); $nick = ltrim(end($path_parts), '@');