Issue 14373: Avoid exception in BBCode parser

This commit is contained in:
Michael 2024-08-27 19:27:56 +00:00
parent c9f330ea48
commit 79524e950c

View file

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