diff options
author | Jim Popovitch <jimpop@gmail.com> | 2013-11-17 01:56:29 +0000 |
---|---|---|
committer | Jim Popovitch <jimpop@gmail.com> | 2013-11-17 01:56:29 +0000 |
commit | 06d15b0a9949652f696d19903cef2a235ff3a428 (patch) | |
tree | 55a9c12de799cc056da986aafe3b8e66d0cbf94b /scripts/driver | |
parent | bc05ad4e81bd2ce9ec0f36e5112eadf607a49195 (diff) | |
parent | ded18dda2b2f9ba00f8780b4eba6c398c5bff838 (diff) | |
download | mailman2-06d15b0a9949652f696d19903cef2a235ff3a428.tar.gz mailman2-06d15b0a9949652f696d19903cef2a235ff3a428.tar.xz mailman2-06d15b0a9949652f696d19903cef2a235ff3a428.zip |
Upstream changes
Diffstat (limited to '')
-rw-r--r-- | scripts/driver | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/driver b/scripts/driver index a0b6b8c6..67ff0fdf 100644 --- a/scripts/driver +++ b/scripts/driver @@ -1,6 +1,6 @@ # -*- python -*- -# Copyright (C) 1998-2010 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2013 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -92,6 +92,11 @@ def run_main(): # Mailman.Cgi package. That module must have a main() function, which # we dig out and call. scriptname = sys.argv[1] + # Then we truncate sys.argv because buggy web servers have been + # observed which do not provide an empty QUERY_STRING in the + # environment which causes cgi.FieldStorage() to add sys.argv[1:] to + # the constructed instance. + del sys.argv[1:] # See the reference manual for why we have to do things this way. # Note that importing should have no side-effects! pkg = __import__('Mailman.Cgi', globals(), locals(), [scriptname]) |