Skip to content

Conversation

@oschwald
Copy link
Member

@oschwald oschwald commented Jun 9, 2025

  • Do not use commons-validator for domain validation
  • Replace commons-validator email validation
  • Remove commons-validator as a dependency

oschwald added 3 commits June 9, 2025 08:15
This isn't quite as strict, but it is a good enough "looks like an
email" check for this purpose.
}

if (domain.endsWith(".")) {
domain = domain.substring(0, domain.length() - 1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would we want to use asciiDomain on these two lines?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. I fixed this and the other issue.

return false;
}

// RFC 5321 the forward path limits the mailbox to 254 characters
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we missing a word here in referring to the RFC?

oschwald added 2 commits June 9, 2025 13:53
I do this by getting rid of the asciiDomain variable as that just makes
it easier to use the wrong one.
@horgh horgh merged commit 50b835f into main Jun 9, 2025
29 checks passed
@horgh horgh deleted the greg/eng-2154 branch June 9, 2025 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants