Do you have a question? Post it now! No Registration Necessary. Now with pictures!
March 29, 2011, 8:48 pm
rate this thread
click to paste emoticons.
Yesterday, someone submitted a post with an emoticon, and it went
through like this:
<img src="http://www.example.com/emoticon/image.jpg/bmi_orig_img /
Obviously, the /bmi_orig_img/image.jpg isn't supposed to be there. It
caused a broken image link on the site.
I searched Google and found a lot of references to this issue, but
didn't really find a reason for it.
I searched my database, and didn't find any other references to
bmi_orig_img, so I'm not sure if this was a one-time fluke, a new
thing from certain browsers that's going to become a problem over
time, or what.
Can you guys give me any insight into the issue? The message board is
processed with Perl, so it's not a big deal to add a line removing it,
but without more information I'm not sure if this is the right move.
If the URL is invalid and removing the bmi part makes it valid, I
wouldn't worry too much about what's causing and just fix it in code.
From what I've just read: some mobile phone network providers compress
all data for a faster browing experience, including compressing (lossy
most likely) images further. The *original* image can be accessed via
the bmi_orig_img. So if the content is editable, the link is inserted by
the software of the network provider, and hence fix the link in
John Bokma j3b
Blog: http://johnbokma.com/ Facebook: http://www.facebook.com/j.j.j.bokma
Freelance Perl & Python Development: http://castleamber.com/