mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:40:16 +00:00
Update src/Network/Probe.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
4faad61a7c
commit
5ab976dd51
1 changed files with 1 additions and 1 deletions
|
@ -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), '@');
|
||||||
|
|
Loading…
Reference in a new issue