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:
@@ -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="'.$val['alt'].'">).*(<\/x-bbcode>)/i',$repl, $text);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user