changeset 5459:04afdde50094

fix sys.argv issue
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 18 Jan 2010 22:28:57 +0100
parents 93fbb0418225
children 44c165260367
files wiki/server/moin.cgi
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/wiki/server/moin.cgi	Mon Jan 18 13:46:32 2010 +0100
+++ b/wiki/server/moin.cgi	Mon Jan 18 22:28:57 2010 +0100
@@ -34,6 +34,9 @@
 # this works around a bug in flup's CGI autodetection (as of flup 1.0.1):
 os.environ['FCGI_FORCE_CGI'] = 'Y' # 'Y' for (slow) CGI, 'N' for FCGI
 
+if 'GATEWAY_INTERFACE' in os.environ:
+    sys.argv = []
+
 from MoinMoin.web.flup_frontend import CGIFrontEnd
 CGIFrontEnd().run()