mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 20:51:53 +02:00
Fix for multiple <x-bbcode> tags.
This commit is contained in:
parent
bad3a54eee
commit
ae3c42d888
@ -4670,7 +4670,9 @@ class e_parser
|
||||
{
|
||||
$tag = base64_decode($val['alt']);
|
||||
$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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user