[Mailman-Developers] error with bad email with % in addError in htmlformat.py

Tokio Kikuchi tkikuchi at is.kochi-u.ac.jp
Tue Jan 11 05:34:32 CET 2005

Hi Mark,

Mark Sapiro wrote:

> The bug report is at
> https://sourceforge.net/tracker/index.php?func=detail&aid=1099840&group_id=103&atid=100103

Looks like we must add more on this list of bad characters.

Index: Utils.py
--- Utils.py    (revision 157)
+++ Utils.py    (working copy)
@@ -200,7 +200,7 @@

  # TBD: what other characters should be disallowed?
-_badchars = re.compile(r'[][()<>|;^,\000-\037\177-\377]')
+_badchars = re.compile(r'[][()<>|;^,%!\000-\037\177-\377]')

  def ValidateEmail(s):
      """Verify that the an email address isn't grossly evil."""

I'm going to add '%' and '!'. Are there any evil charcters like these?

Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp

More information about the Mailman-Developers mailing list