]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 62000: File attachments don't work on Windows. Note: only the code from the patch...
authorjouni%heikniemi.net <>
Thu, 4 Jul 2002 16:12:33 +0000 (16:12 +0000)
committerjouni%heikniemi.net <>
Thu, 4 Jul 2002 16:12:33 +0000 (16:12 +0000)
documentation issue was split to bug 155743.
2xr=bbaetz

attachment.cgi

index f45b4efd395e8371ad399c416cf410fa8515be12..a755d3b263e1e0c20aeb51a441602164a6b7ae46 100755 (executable)
@@ -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";