From: Michael Date: Tue, 27 Aug 2024 19:27:56 +0000 (+0000) Subject: Issue 14373: Avoid exception in BBCode parser X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=79524e950c1aed9ed217f81c5c7dcf868fa7ae6a;p=friendica.git Issue 14373: Avoid exception in BBCode parser --- diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 4f1d881381..003f7ab402 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -814,7 +814,7 @@ class BBCode $content = preg_replace(Strings::autoLinkRegEx(), '$1', $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 );