Files
mostlymatter/server
Alejandro García Montoro de46d798e4 MM-60780: Reject emails within angle brackets (#29661)
* Reject emails within angle brackets

mail.ParseAddress is RFC-compliant, which means that it accepts emails
with names, as in "Billy Bob <billy@example.com>". It even accepts this
form *without* a name; e.g. "<billy@example.com>". We want to store the
plain address, so we compare the user input with the Address field of
the result from mail.ParseAddress, which should contain only
"billy@example.com", thus only accepting emails that do not contain
names nor angle brackets.

* Log a warning for admins with clear next steps

* Fix wording of comment

* And a typo

* Add specific command example to log message

* Add input email to log message

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2025-04-21 19:22:15 +02:00
..
2023-03-22 17:22:27 -04:00
2025-04-03 13:07:54 +05:30
2023-03-22 17:22:27 -04:00
2025-01-30 15:18:09 +01:00
2023-03-22 17:22:27 -04:00
2025-03-17 14:22:07 +01:00
2023-03-22 17:22:27 -04:00
2023-03-22 17:22:27 -04:00
2025-04-15 14:45:19 -06:00
2024-05-15 12:05:13 -03:00