Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix email with empty domain name labels passing validation #23246

Merged
merged 2 commits into from
Jan 24, 2023

Conversation

ClearlyClaire
Copy link
Contributor

No description provided.

`EmailMxValidator` would allow empty labels because `Resolv::DNS` is
particularly lenient about them, but the email would be invalid and
unusable.
@Gargron Gargron merged commit a5a00d7 into mastodon:main Jan 24, 2023
btrd pushed a commit to btrd/mastodon that referenced this pull request Feb 22, 2023
…23246)

* Fix email with empty domain name labels passing validation

`EmailMxValidator` would allow empty labels because `Resolv::DNS` is
particularly lenient about them, but the email would be invalid and
unusable.

* Add tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants