diff --git a/wiki.pl b/wiki.pl index 6ce55b97..7bfb876a 100755 --- a/wiki.pl +++ b/wiki.pl @@ -3132,6 +3132,7 @@ sub DoDownload { if @UploadTypes and not $allowed{$type}; print GetHttpHeader($type, $ts, undef, $encoding); require MIME::Base64; + binmode(STDOUT, "raw"); print MIME::Base64::decode($data); } else { print GetHttpHeader('text/plain', $ts);