]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1597235 - Setting the mime type of a pasted attachment doesn't work.
authorKohei Yoshino <kohei.yoshino@gmail.com>
Tue, 19 Nov 2019 02:38:13 +0000 (21:38 -0500)
committerdklawren <dklawren@users.noreply.github.com>
Tue, 19 Nov 2019 02:38:13 +0000 (21:38 -0500)
Bugzilla/Attachment.pm

index af33b75a061b12f087ba0cfdf72ab039fbe596b8..e7b3108343adb606bd2cade470d32bbf4424964f 100644 (file)
@@ -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');