diff options
author | Mark Sapiro <mark@msapiro.net> | 2014-09-21 19:06:41 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2014-09-21 19:06:41 -0700 |
commit | 851430b1cfbee6d92e4e1c0f110e4e66a1609d55 (patch) | |
tree | 9d360959bf390ad1c24f2958fcef0794c9b8aa53 /Mailman/Utils.py | |
parent | eb37da776d7a77c575b6452e60982b465a3f38ba (diff) | |
download | mailman2-851430b1cfbee6d92e4e1c0f110e4e66a1609d55.tar.gz mailman2-851430b1cfbee6d92e4e1c0f110e4e66a1609d55.tar.xz mailman2-851430b1cfbee6d92e4e1c0f110e4e66a1609d55.zip |
The options CGI now rejects all but HTTP GET and POST requests.
Diffstat (limited to '')
-rw-r--r-- | Mailman/Utils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py index 1bbb9bb1..1a08c119 100644 --- a/Mailman/Utils.py +++ b/Mailman/Utils.py @@ -261,6 +261,11 @@ def GetPathPieces(envar='PATH_INFO'): +def GetRequestMethod(): + return os.environ.get('REQUEST_METHOD') + + + def ScriptURL(target, web_page_url=None, absolute=False): """target - scriptname only, nothing extra web_page_url - the list's configvar of the same name |