From 97eb2ba0538cdba1c878a0dd9d2379dfefa38637 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 25 Feb 2019 07:12:01 -0500 Subject: [PATCH] Fix possibly undefined after index in Text\BBCode --- src/Content/Text/BBCode.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index e9b5f98d0b..ddfacf1603 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -67,6 +67,7 @@ class BBCode extends BaseObject $post["after"] = trim(substr($body, $pos + strlen($data[0]))); } else { $post["text"] = trim(str_replace($data[0], "", $body)); + $post["after"] = ''; } $attacheddata = $data[2];