From 5e2f50ff61060fd11ae19ea43808f4a6b07d5b0a Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Tue, 29 Mar 2011 20:33:24 -0700 Subject: Changed the subscribe CGI to strip leading and trailing whitespace from the supplied email address. Bug #745432. --- Mailman/Cgi/subscribe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Mailman/Cgi') 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.')) -- cgit v1.2.3