summaryrefslogtreecommitdiff
path: root/Mailman/Utils.py
diff options
context:
space:
mode:
authorbwarsaw2002-05-22 03:00:20 +0000
committerbwarsaw2002-05-22 03:00:20 +0000
commit60790e03afceb35030a4a31dcccc4f0f9d5053fc (patch)
treefa70eb1d593b1174a71badfa98d1d319b2818292 /Mailman/Utils.py
parent827dac80874f2f33453aeb2c36e5daa7e2bb406f (diff)
downloadmailman-60790e03afceb35030a4a31dcccc4f0f9d5053fc.tar.gz
mailman-60790e03afceb35030a4a31dcccc4f0f9d5053fc.tar.zst
mailman-60790e03afceb35030a4a31dcccc4f0f9d5053fc.zip
Diffstat (limited to 'Mailman/Utils.py')
-rw-r--r--Mailman/Utils.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index 86c77c1ef..3b300c1b8 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -344,9 +344,8 @@ def check_global_password(response, siteadmin=1):
-def QuoteHyperChars(str):
- from cgi import escape
- return escape(str, quote=1)
+def websafe(s):
+ return cgi.escape(s, quote=1)
@@ -563,7 +562,7 @@ def GetRequestURI(fallback=None, escape=1):
elif os.environ.has_key('SCRIPT_NAME') and os.environ.has_key('PATH_INFO'):
url = os.environ['SCRIPT_NAME'] + os.environ['PATH_INFO']
if escape:
- return cgi.escape(url)
+ return websafe(url)
return url