------------------------------------------------------------ revno: 1152 committer: Mark Sapiro <msap...@value.net> branch nick: 2.2 timestamp: Tue 2011-03-29 20:32:21 -0700 message: Changed the subscribe CGI to strip leading and trailing whitespace from the supplied email address. Bug #745432. modified: Mailman/Cgi/subscribe.py NEWS
-- lp:mailman/2.2 https://code.launchpad.net/~mailman-coders/mailman/2.2 Your team Mailman Checkins is subscribed to branch lp:mailman/2.2. To unsubscribe from this branch go to https://code.launchpad.net/~mailman-coders/mailman/2.2/+edit-subscription
=== modified file 'Mailman/Cgi/subscribe.py' --- Mailman/Cgi/subscribe.py 2010-03-29 20:47:23 +0000 +++ Mailman/Cgi/subscribe.py 2011-03-30 03:32:21 +0000 @@ -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 @@ 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.')) === modified file 'NEWS' --- NEWS 2011-03-21 20:43:40 +0000 +++ NEWS 2011-03-30 03:32:21 +0000 @@ -108,6 +108,9 @@ Bug Fixes and other patches + - Changed the subscribe CGI to strip leading and trailing whitespace from + the supplied email address. Bug #745432. + - Changed the maximum number of arguments for the who command to be considered administrivia from 2 to 1 to help avoid false positives. Bug #739524.
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org