From: Kohei Yoshino Date: Tue, 19 Nov 2019 02:38:13 +0000 (-0500) Subject: Bug 1597235 - Setting the mime type of a pasted attachment doesn't work. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7ff98a517dceabcbd8ce933ba516fe2833995726;p=thirdparty%2Fbugzilla.git Bug 1597235 - Setting the mime type of a pasted attachment doesn't work. --- diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm index af33b75a0..e7b310834 100644 --- a/Bugzilla/Attachment.pm +++ b/Bugzilla/Attachment.pm @@ -846,7 +846,7 @@ sub get_content_type { my $cgi = Bugzilla->cgi; return 'application/octet-stream' if ($cgi->param('hide_preview')); - return 'text/plain' if ($cgi->param('ispatch') || $cgi->param('attach_text')); + return 'text/plain' if ($cgi->param('ispatch')); my $content_type; my $method = $cgi->param('contenttypemethod');