Skip to content
Snippets Groups Projects
Commit 15b442dd authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

strip whitespace from addresses

parent 39d94682
No related branches found
Tags 2.8.1 2.8.1-rc3
3 merge requests!1408catch up with 2.8.1.1, pin zope.sqlalchemy to 2.0,!1405merge 2.8.1.1 to main,!1402strip whitespace from addresses
Pipeline #10235 passed
......@@ -71,8 +71,8 @@ class NotificationService(NotificationServiceIF):
if isinstance(parameters["destination_email"], list):
receiver_emails = parameters["destination_email"]
else:
# sometimes the list gets passed in as a string, split it if needed
receiver_emails = parameters["destination_email"].split(",")
# sometimes the list gets passed in as a string, split it if needed and strip extra spaces
receiver_emails = [address.strip() for address in parameters["destination_email"].split(",")]
# Let's not send emails into the void
if not receiver_emails:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment