IMG tag messup
#1
The bbcode parser doesn't work properly.

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?



Messages In This Thread
IMG tag messup - by Yako - 2006-06-10, 07:25 AM
RE: IMG tag messup - by squall_leonhart69r - 2006-06-10, 08:57 AM
RE: IMG tag messup - by - 2006-06-10, 01:40 PM
RE: [B] IMG tag messup - by Yako - 2006-06-10, 10:23 PM
RE: IMG tag messup - by zaher1988 - 2006-06-13, 05:41 PM
RE: IMG tag messup - by Yako - 2006-06-13, 06:40 PM
RE: IMG tag messup - by zaher1988 - 2006-06-13, 07:54 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)