summaryrefslogtreecommitdiffstats
path: root/attachment.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'attachment.cgi')
-rwxr-xr-xattachment.cgi6
1 files changed, 6 insertions, 0 deletions
diff --git a/attachment.cgi b/attachment.cgi
index f45b4efd3..a755d3b26 100755
--- a/attachment.cgi
+++ b/attachment.cgi
@@ -36,6 +36,12 @@ use vars qw(
$vars
);
+# Win32 specific hack to avoid a hang when creating/showing an attachment
+if ($^O eq 'MSWin32') {
+ binmode(STDIN);
+ binmode(STDOUT);
+}
+
# Include the Bugzilla CGI and general utility library.
require "CGI.pl";