Mark Sapiro pushed to branch master at GNU Mailman / Mailman Core
Commits:
ec5cb287 by Mark Sapiro at 2022-02-13T16:30:24-08:00
Allow an empty value in list_of_emails_or_regexp_validator to clear the list.
- - - - -
a7113b5d by Mark Sapiro at 2022-02-14T00:57:58+00:00
Merge branch 'fix' into 'master'
Allow an empty value in list_of_emails_or_regexp_validator to clear the list.
See merge request mailman/mailman!962
- - - - -
1 changed file:
- src/mailman/rest/validator.py
Changes:
=====================================
src/mailman/rest/validator.py
=====================================
@@ -135,7 +135,9 @@ def list_of_emails_or_regexp_validator(values):
if not isinstance(values, (list, tuple)):
values = [values]
for value in values:
- email_or_regexp_validator(value)
+ # Allow an empty value to clear the list.
+ if value:
+ email_or_regexp_validator(value)
return values
View it on GitLab:
https://gitlab.com/mailman/mailman/-/compare/d8354ba67e5eb3d26481ae1a1b788d3cd4d80535...a7113b5da5a1f8574dcb3bb4c2ea37ea88fec1ca
--
View it on GitLab:
https://gitlab.com/mailman/mailman/-/compare/d8354ba67e5eb3d26481ae1a1b788d3cd4d80535...a7113b5da5a1f8574dcb3bb4c2ea37ea88fec1ca
You're receiving this email because of your account on gitlab.com.
_______________________________________________
Mailman-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/mailman-checkins.python.org/
Member address: [email protected]