diff options
author | Reed Loden <reed@reedloden.com> | 2010-07-05 08:13:07 +0200 |
---|---|---|
committer | Reed Loden <reed@reedloden.com> | 2010-07-05 08:13:07 +0200 |
commit | e69d9ce1a782722720de7a47ce7f36554181a382 (patch) | |
tree | 763dae31fb62ec17c757b8c93b6f203a51c89228 /Bugzilla | |
parent | 64d570c1a9fd5a185fd43d81e0d782639bf5bbcf (diff) | |
download | bugzilla-e69d9ce1a782722720de7a47ce7f36554181a382.tar.gz bugzilla-e69d9ce1a782722720de7a47ce7f36554181a382.tar.xz |
Bug 574327 - Map image/x-png to image/png (to fix IE's uploads)
[r=LpSolit a=LpSolit]
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Attachment.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm index 930495d42..f42ff429e 100644 --- a/Bugzilla/Attachment.pm +++ b/Bugzilla/Attachment.pm @@ -989,6 +989,12 @@ sub get_content_type { $cgi->param('ispatch', 1); $content_type = 'text/plain'; } + + # Internet Explorer sends image/x-png for PNG images, + # so convert that to image/png to match other browsers. + if ($content_type eq 'image/x-png') { + $content_type = 'image/png'; + } } elsif ($cgi->param('contenttypemethod') eq 'list') { # The user selected a content type from the list, so use their |