Commit e69d9ce1 authored by Reed Loden's avatar Reed Loden

Bug 574327 - Map image/x-png to image/png (to fix IE's uploads)

[r=LpSolit a=LpSolit]
parent 64d570c1
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment