You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-07-17 01:32:29 +02:00
Fix 3095
This commit is contained in:
@ -39,7 +39,7 @@ class MultipleEmailAddressesVerify(object):
|
||||
|
||||
def __call__(self, form, field):
|
||||
pattern = re.compile(r'^([_a-z0-9\-\+]+)(\.[_a-z0-9\-\+]+)*@([a-z0-9\-]{1,}\.)*([a-z]{1,})(,([_a-z0-9\-\+]+)(\.[_a-z0-9\-\+]+)*@([a-z0-9\-]{1,}\.)*([a-z]{2,}))*$')
|
||||
if not pattern.match(field.data.replace(" ", "")):
|
||||
if not pattern.match(field.data.lower().replace(" ", "")):
|
||||
raise validators.ValidationError(self.message)
|
||||
|
||||
class MultipleFoldersVerify(object):
|
||||
|
1
towncrier/newsfragments/3095.bugfix
Normal file
1
towncrier/newsfragments/3095.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Ensure that the form validator related to forwarding addresses allows for uppercase
|
Reference in New Issue
Block a user