summaryrefslogtreecommitdiffstats
path: root/attachment.cgi
diff options
context:
space:
mode:
authorjouni%heikniemi.net <>2002-07-04 18:12:33 +0200
committerjouni%heikniemi.net <>2002-07-04 18:12:33 +0200
commit4bc6d3653390bc268789c91803b1953accff520a (patch)
treeaebd6705d7cec9b50a5a7fbaec3ead7df2dc384c /attachment.cgi
parent46c9fb479d36e0a0b3fcbc447d7483ec09666d43 (diff)
downloadbugzilla-4bc6d3653390bc268789c91803b1953accff520a.tar.gz
bugzilla-4bc6d3653390bc268789c91803b1953accff520a.tar.xz
Bug 62000: File attachments don't work on Windows. Note: only the code from the patch was checked in, the
documentation issue was split to bug 155743. 2xr=bbaetz
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";