error with bad email with % in addError in htmlformat.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
Fix Released
|
Medium
|
Unassigned |
Bug Description
If an e-mail address being added to any of several
properties via the list admin Gui is "bad" and also
happens to contain a '%' character an error similar to
the following occurs.
Traceback (most recent call last):
File "/usr/local/
run_main
main()
File "/usr/local/
175, in main
change_
File "/usr/local/
1296, in change_options
gui.
File "/usr/local/
line 510, in handleForm
GUIBase.
cgidata, doc)
File "/usr/local/
line 158, in handleForm
doc.addError(
File "/usr/local/
340, in addError
self.
TypeError: not enough arguments for format string
The error actually occurs in evaluation of errmsg %
args where errmsg is 'Bad email address for option
%(property)s: %(val)s' and the value of 'val' in args
contains a '%'.
This occurs in many places in the admin Gui where the
entry is an e-mail address, e.g owner, moderator,
ban_list, accept_
example in a mass subscribe list.
email addresses which cause the problem include for
example abc%def.ghi and ab%c@def@ghi but not
ab%<email address hidden> since this latter address is not deemed
invalid.
[http://
Fixed in CVS and appear in 2.1.6 soon.