Files
mostlymatter/server/public/model
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-10-11 10:13:36 +02:00
2023-10-11 10:13:36 +02:00
2023-10-11 10:13:36 +02:00
2023-10-12 09:47:35 +05:30
2024-03-12 08:36:05 -06:00
2025-04-03 13:07:54 +05:30
2025-04-03 13:07:54 +05:30
2024-04-24 17:09:49 +02:00
2025-03-12 18:22:03 -04:00
2025-01-27 16:28:27 +00:00
2024-02-09 11:17:28 -05:00
2023-12-11 15:27:34 -05:00