2006-06-10, 07:25 AM
The bbcode parser doesn't work properly.
If you place 2 images after eachother like this:
It parses it as 1 image, taking the first img and the last /img tag as one image. Therefore the link is incorrect (because it takes "http://stuff.com/image.png[/img] possibly some text
[ img]http://stuff.com/image2.png" as link), so the image(s) won't show up.
You can fix it by placing some extra code in between, like this:
I think the bbcode parser misses a quantifier minimizer in it's regex?
If you place 2 images after eachother like this:
[ img]http://stuff.com/image.png[/img] possibly some text
[ img]http://stuff.com/image2.png[/img]
It parses it as 1 image, taking the first img and the last /img tag as one image. Therefore the link is incorrect (because it takes "http://stuff.com/image.png[/img] possibly some text
[ img]http://stuff.com/image2.png" as link), so the image(s) won't show up.
You can fix it by placing some extra code in between, like this:
[ img]http://stuff.com/image.png[/img][ b][/b]
[ img]http://stuff.com/image2.png[/img]
I think the bbcode parser misses a quantifier minimizer in it's regex?