commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Chown (JIRA)" <j...@apache.org>
Subject [jira] [Created] (VALIDATOR-439) bad£$Email@Something.com is accepted
Date Wed, 09 May 2018 17:22:00 GMT
Jason Chown created VALIDATOR-439:
-------------------------------------

             Summary: bad£$Email@Something.com is accepted
                 Key: VALIDATOR-439
                 URL: https://issues.apache.org/jira/browse/VALIDATOR-439
             Project: Commons Validator
          Issue Type: Bug
    Affects Versions: 1.6
            Reporter: Jason Chown


By chance we chose the string "bad£$Email@Something.com" as a test string, but it passes
validation?!

e.g.

 
{code:java}
import org.apache.commons.validator.routines.EmailValidator;

public class TryEmailValidator
{
   public static void main(String[] args)
   {
      if (EmailValidator.getInstance().isValid("bad£$Email@Something.com"))
      {
         throw new RuntimeException("That's not right?!");
      }
   }
}
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message