From efac0c287e739e4595faf6bcbea591c635302518 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Thu, 16 Jan 2020 19:25:09 -0800 Subject: Valid address pattern needs to consume the whole string. --- Mailman/Bouncers/SimpleMatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Mailman/Bouncers') diff --git a/Mailman/Bouncers/SimpleMatch.py b/Mailman/Bouncers/SimpleMatch.py index fd833a40..1c573e02 100644 --- a/Mailman/Bouncers/SimpleMatch.py +++ b/Mailman/Bouncers/SimpleMatch.py @@ -26,7 +26,7 @@ def _c(pattern): return re.compile(pattern, re.IGNORECASE) # Pattern to match any valid email address and not much more. -VALID = _c(r'[\x21-\x3d\x3f\x41-\x7e]+@[a-z0-9._]+') +VALID = _c(r'^[\x21-\x3d\x3f\x41-\x7e]+@[a-z0-9._]+$') # This is a list of tuples of the form # -- cgit v1.2.3