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
Email validation is too lax #1347
Comments
ghost
assigned ebruchez
Oct 22, 2013
avernet
changed the title
Email address ending with "/" is valid
Email validation is too lac
Jun 11, 2014
Updated title to make this issue more general, and added case of the missing TLD. +1 from customer |
I was hoping we could use JavaMail for this, but unfortunately, import javax.mail.internet.InternetAddress
val email = new InternetAddress("info@orbeon.com/")
email.validate() |
Apache Validator does a better job: import org.apache.commons.validator.routines.EmailValidator
EmailValidator.getInstance(false).isValid("info@orbeon.com/") |
avernet
added a commit
that referenced
this issue
Jun 27, 2014
- a@b.com/ is invalid. - a@b is invalid. - Add test for valid case (a@b.com).
avernet
added a commit
that referenced
this issue
Jun 27, 2014
avernet
added a commit
that referenced
this issue
Jun 27, 2014
- a@b.com/ is invalid. - a@b is invalid. - Add test for valid case (a@b.com).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
info@orbeon.com/
.info@orbeon
. While in some contexts such email might be valid, it doesn't make much sense to accept it as valid in the context of a web form.The text was updated successfully, but these errors were encountered: