mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:00:16 +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
|
||||
{
|
||||
$parts = parse_url($url);
|
||||
if (empty($parts)) {
|
||||
if (empty($parts['host'])) {
|
||||
return $url;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue