1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Fix for multiple <x-bbcode> tags.

This commit is contained in:
Cameron
2017-12-14 18:04:45 -08:00
parent bad3a54eee
commit ae3c42d888

View File

@@ -4670,7 +4670,9 @@ class e_parser
{ {
$tag = base64_decode($val['alt']); $tag = base64_decode($val['alt']);
$repl = ($retainTags == true) ? '$1'.$tag.'$2' : $tag; $repl = ($retainTags == true) ? '$1'.$tag.'$2' : $tag;
$text = preg_replace('/(<x-bbcode[^>]*>).*(<\/x-bbcode>)/i',$repl, $text); // $text = preg_replace('/(<x-bbcode[^>]*>).*(<\/x-bbcode>)/i',$repl, $text);
$text = preg_replace('/(<x-bbcode alt=&quot;'.$val['alt'].'&quot;>).*(<\/x-bbcode>)/i',$repl, $text);
} }
} }