Fix: Undefined array key "host"

This commit is contained in:
Michael 2024-05-20 14:49:36 +00:00
parent 6b04dcf90b
commit 92a7b65587

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