aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Cgi
diff options
context:
space:
mode:
authorMark Sapiro <msapiro@value.net>2011-03-29 20:33:24 -0700
committerMark Sapiro <msapiro@value.net>2011-03-29 20:33:24 -0700
commit5e2f50ff61060fd11ae19ea43808f4a6b07d5b0a (patch)
treeafb08df34f3e57cd19d53d47115752a00fd51cad /Mailman/Cgi
parent07a595eea998d7b71f74ae6b5acf3d3870a5cd31 (diff)
downloadmailman2-5e2f50ff61060fd11ae19ea43808f4a6b07d5b0a.tar.gz
mailman2-5e2f50ff61060fd11ae19ea43808f4a6b07d5b0a.tar.xz
mailman2-5e2f50ff61060fd11ae19ea43808f4a6b07d5b0a.zip
Changed the subscribe CGI to strip leading and trailing whitespace from
the supplied email address. Bug #745432.
Diffstat (limited to 'Mailman/Cgi')
-rw-r--r--Mailman/Cgi/subscribe.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Cgi/subscribe.py b/Mailman/Cgi/subscribe.py
index f7b03ac6..0d10eb19 100644
--- a/Mailman/Cgi/subscribe.py
+++ b/Mailman/Cgi/subscribe.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2009 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2011 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
@@ -109,7 +109,7 @@ def process_form(mlist, doc, cgidata, lang):
results = []
# The email address being subscribed, required
- email = cgidata.getvalue('email', '')
+ email = cgidata.getvalue('email', '').strip()
if not email:
results.append(_('You must supply a valid email address.'))