mirror of
https://github.com/friendica/friendica
synced 2024-11-09 16:22:56 +00:00
Merge pull request #14172 from annando/fix-warning
Fix: Undefined array key "host"
This commit is contained in:
commit
ea5e1f1edc
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