From 645ca143bb8c248184a4cae5178cc3c9ffbf9530 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Thu, 6 Mar 2003 22:37:51 +0000 Subject: _badchars: Do not allow email addresses that have 8-bit characters in them. Note this does /not/ check the realnames, just the addresses. --- Mailman/Utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mailman/Utils.py b/Mailman/Utils.py index 922626849..57c87c36e 100644 --- a/Mailman/Utils.py +++ b/Mailman/Utils.py @@ -192,7 +192,7 @@ def LCDomain(addr): # TBD: what other characters should be disallowed? -_badchars = re.compile('[][()<>|;^,/]') +_badchars = re.compile(r'[][()<>|;^,/\200-\377]') def ValidateEmail(s): """Verify that the an email address isn't grossly evil.""" -- cgit v1.3.1