mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:00:16 +00:00
Issue 14373: Avoid exception in BBCode parser
This commit is contained in:
parent
c9f330ea48
commit
79524e950c
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