mirror of
https://github.com/friendica/friendica
synced 2024-12-22 19:20:17 +00:00
Merge pull request #14401 from annando/issue-14373
Issue 14373: Avoid exception in BBCode parser
This commit is contained in:
commit
e676a3db15
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue