diff options
author | jouni%heikniemi.net <> | 2002-07-04 16:12:33 +0000 |
---|---|---|
committer | jouni%heikniemi.net <> | 2002-07-04 16:12:33 +0000 |
commit | 4bc6d3653390bc268789c91803b1953accff520a (patch) | |
tree | aebd6705d7cec9b50a5a7fbaec3ead7df2dc384c | |
parent | 46c9fb479d36e0a0b3fcbc447d7483ec09666d43 (diff) | |
download | bugs-4bc6d3653390bc268789c91803b1953accff520a.tar bugs-4bc6d3653390bc268789c91803b1953accff520a.tar.gz bugs-4bc6d3653390bc268789c91803b1953accff520a.tar.bz2 bugs-4bc6d3653390bc268789c91803b1953accff520a.tar.xz bugs-4bc6d3653390bc268789c91803b1953accff520a.zip |
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
-rwxr-xr-x | attachment.cgi | 6 |
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"; |