зеркало из https://github.com/mozilla/pjs.git
Bug 408446: Non-text attachments were mangled by "binmode STDOUT, ':utf8'"
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
This commit is contained in:
Родитель
ef3fe9564d
Коммит
970981081f
|
@ -246,6 +246,9 @@ 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.
|
||||
}
|
||||
print $attachment->data;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче