From ae3c42d888131674ee7c9bb5ee3b8944976af502 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 14 Dec 2017 18:04:45 -0800 Subject: [PATCH] Fix for multiple tags. --- e107_handlers/e_parse_class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index a8edb9df1..1dab93fcb 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -4670,7 +4670,9 @@ class e_parser { $tag = base64_decode($val['alt']); $repl = ($retainTags == true) ? '$1'.$tag.'$2' : $tag; - $text = preg_replace('/(]*>).*(<\/x-bbcode>)/i',$repl, $text); + // $text = preg_replace('/(]*>).*(<\/x-bbcode>)/i',$repl, $text); + $text = preg_replace('/().*(<\/x-bbcode>)/i',$repl, $text); + } }