mirror of
https://github.com/friendica/friendica
synced 2024-11-09 17:02:54 +00:00
Fix: Undefined array key "host"
This commit is contained in:
parent
6b04dcf90b
commit
92a7b65587
1 changed files with 1 additions and 1 deletions
|
@ -2119,7 +2119,7 @@ class BBCode
|
||||||
private static function idnUrl(string $url): string
|
private static function idnUrl(string $url): string
|
||||||
{
|
{
|
||||||
$parts = parse_url($url);
|
$parts = parse_url($url);
|
||||||
if (empty($parts)) {
|
if (empty($parts['host'])) {
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue