IE7 Fail -_-

Someone reported (thanks!) that a download link for a torrent was not working properly (torrent: link).

I already suspected at first that there might be a strange character in there, but all characters work fine on Windows and are accepted as valid (including the semicolon). After a bit of checking it turns out the problematic browser is IE7. It cuts the filename at the semicolon. After checking the code again I understand why it could possibly, remotely, happen granted that the developers for IE7 are a bunch of tards and are keen on ignoring common sense and anything that requires brain cells.

header("Content-Type: application/x-bittorrent");
header("Content-Disposition: attachment;
filename=\"" . $torrent["filename"] . "\"");

Apparently the semicolon is used to separate multiple arguments in content headers, but this should obviously not be the case when it occurs in a “string”.

Google confirms this issue, though I was surprised at how little results popped up. (source: link, click “Horrors with Internet Explorer 7 [modified]”)

but then the problem comes with “;” (semicolon) in filename. If we have a filename like “IE 7 Browser; Cruel Browser.jpg”, the content disposition dialogue shows as

I can not tell you how overjoyed I am to find bugs like this Internet Explorer 7, really.
If anyone has IE8 can you try and see if they’ve fixed it yet? (I’ve fixed it for BoxTorrents already so you’ll need to look elsewhere).

–Jarudin–

This entry was posted in Fail, Staff Blog! and tagged . Bookmark the permalink.

7 Responses to IE7 Fail -_-

  1. Pingback: talk jokes » Blog Archive » Re: Killerspiele

  2. Pingback: bIE7/b Fail -_- « BoxTorrents Blog « Windows 7 Live Info

Leave a Reply