Issue 14373: Avoid exception in BBCode parser

pull/14401/head
Michael 2024-08-27 19:27:56 +00:00
rodzic c9f330ea48
commit 79524e950c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -814,7 +814,7 @@ class BBCode
$content = preg_replace(Strings::autoLinkRegEx(), '<a href="$1">$1</a>', $match[3]);
return $match[1] . $callback($attributes, $author_contact, $content, trim($match[1]) != '');
return $match[1] . $callback($attributes, $author_contact, $content ?? '', trim($match[1]) != '');
},
$text
);