mirror of
https://github.com/friendica/friendica
synced 2024-12-22 19:20:17 +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 = '';
|
$nick = '';
|
||||||
$addr = '';
|
$addr = '';
|
||||||
|
|
||||||
$path_parts = explode('/', trim($parts['path'] ?? '', '/'));
|
if (array_key_exists('path', $parts) && strval($parts['path']) !== '') {
|
||||||
if (is_array($path_parts)) {
|
$path_parts = explode('/', trim($parts['path'], '/'));
|
||||||
|
|
||||||
$nick = ltrim(end($path_parts), '@');
|
$nick = ltrim(end($path_parts), '@');
|
||||||
$addr = $nick . '@' . $host;
|
$addr = $nick . '@' . $host;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue