You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Jason Chown (JIRA)" <ji...@apache.org> on 2018/05/09 17:48:00 UTC

[jira] [Commented] (VALIDATOR-439) bad£$Email@Something.com is accepted

    [ https://issues.apache.org/jira/browse/VALIDATOR-439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16469190#comment-16469190 ] 

Jason Chown commented on VALIDATOR-439:
---------------------------------------

Ah, I wasn't aware of SMTPUTF8, I am showing my age!

Thanks for the quick response.

> 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
>            Priority: Major
>
> 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)