diff options
author | Mark Sapiro <mark@msapiro.net> | 2020-01-16 19:25:09 -0800 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2020-01-16 19:25:09 -0800 |
commit | efac0c287e739e4595faf6bcbea591c635302518 (patch) | |
tree | 71c824ea21ba47b0b2a87912e72d0c98b9dc117f /Mailman/Bouncers/SimpleMatch.py | |
parent | f82ff472e5ccfa07f99a0eff5e98c5bc5ebf3e9b (diff) | |
download | mailman2-efac0c287e739e4595faf6bcbea591c635302518.tar.gz mailman2-efac0c287e739e4595faf6bcbea591c635302518.tar.xz mailman2-efac0c287e739e4595faf6bcbea591c635302518.zip |
Valid address pattern needs to consume the whole string.
Diffstat (limited to '')
-rw-r--r-- | Mailman/Bouncers/SimpleMatch.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 # |