Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have a message board that uses contenteditable, and allows users to
click to paste emoticons.

Yesterday, someone submitted a post with an emoticon, and it went
through like this:

<img src=" /

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.



Re: bmi_orig_img

Quoted text here. Click to load it

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:    Facebook:
    Freelance Perl & Python Development:

Re: bmi_orig_img

On Tue, 29 Mar 2011 16:16:51 -0600, John Bokma wrote in

Quoted text here. Click to load it

I think it's the bmi.js
Apple uses it I believe.

Supreme executive power derives from a mandate from the masses, not from
some farcical aquatic ceremony!

Site Timeline