]> git.mxchange.org Git - friendica.git/commitdiff
Fix possibly undefined after index in Text\BBCode
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 25 Feb 2019 12:12:01 +0000 (07:12 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 25 Feb 2019 12:12:01 +0000 (07:12 -0500)
src/Content/Text/BBCode.php

index e9b5f98d0b496deb0f6839f78a66b4b0e986a896..ddfacf16030ef7d59d84555e780e973e414de8ae 100644 (file)
@@ -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];