1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-07-17 01:32:29 +02:00
This commit is contained in:
Florent Daigniere
2023-12-19 18:25:04 +01:00
parent 2ee1c0698e
commit 422f005c3f
2 changed files with 2 additions and 1 deletions

View File

@ -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):

View File

@ -0,0 +1 @@
Ensure that the form validator related to forwarding addresses allows for uppercase