mirror of
https://github.com/friendica/friendica
synced 2024-12-22 20:00:16 +00:00
check for path parts
This commit is contained in:
parent
ae52648950
commit
b612180c22
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue