Merge pull request #14172 from annando/fix-warning

Fix: Undefined array key "host"
This commit is contained in:
Tobias Diekershoff 2024-05-20 17:40:17 +02:00 committed by GitHub
commit ea5e1f1edc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}