kopia lustrzana https://github.com/friendica/friendica
Issue 14373: Avoid exception in BBCode parser
rodzic
c9f330ea48
commit
79524e950c
|
@ -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
|
||||
);
|
||||
|
|
Ładowanie…
Reference in New Issue