From 79524e950c1aed9ed217f81c5c7dcf868fa7ae6a Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 27 Aug 2024 19:27:56 +0000 Subject: [PATCH] Issue 14373: Avoid exception in BBCode parser --- src/Content/Text/BBCode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );