summaryrefslogtreecommitdiffstats
path: root/attachment.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-xattachment.cgi4
1 files changed, 1 insertions, 3 deletions
diff --git a/attachment.cgi b/attachment.cgi
index 5f29649f3..937087a51 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -247,9 +247,7 @@ sub view {
print $cgi->header(-type=>"$contenttype; name=\"$filename\"",
-content_disposition=> "inline; filename=\"$filename\"",
-content_length => $attachment->datasize);
- if (Bugzilla->params->{'utf8'}) {
- binmode STDOUT, ':raw'; # Turn off UTF8 encoding.
- }
+ disable_utf8();
print $attachment->data;
}