From e69d9ce1a782722720de7a47ce7f36554181a382 Mon Sep 17 00:00:00 2001 From: Reed Loden Date: Mon, 5 Jul 2010 01:13:07 -0500 Subject: Bug 574327 - Map image/x-png to image/png (to fix IE's uploads) [r=LpSolit a=LpSolit] --- Bugzilla/Attachment.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Bugzilla') 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 -- cgit v1.2.3-24-g4f1b