Dragging and dropping inline images (with data URL) causes incorrect link

fury

Member
I saw a post with a broken image on my board tonight, and when I right-clicked it and opened it in a new tab to check and see what was wrong with it, I got what I believe was a 414 error (request too long, something like that). It was base64 image data, except it was linked incorrectly, having the URL to the board in front of the data. As in, it looked like this in the DOM inspection: <img src="http://racing-forums.com/data:image/png;base64...">

So, recognizing this data:image part as inline image data, I decided to try a trick and copy the link except remove the URL to my board, and try to navigate to it with my browser. I saw the image render in the tab, saved it to my computer, and edited the original post to remove the broken image and uploaded an attachment in its place. It was 274kb. Somewhat related, I think, is that my Chrome cache became corrupt after viewing this page and trying to load this "image" (every page load after that results in a long wait time "Waiting for cache..." before anything starts to load - had to delete the cache folder)

What happened, I believe, is that the poster dragged an HTML inline image from somewhere to his post. The board (or the editor) processed it as a URL with the base being the board URL. I have reproduced this here, with a small image so as not to cause a 414 error/cache breaking:

OU8bgAAAAASUVORK5CYII=


Would it be possible to have the board convert this to a file attachment automatically?
 
Top Bottom