[
https://issues.apache.org/jira/browse/VALIDATOR-442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17165359#comment-17165359
]
Sebb commented on VALIDATOR-442:
--------------------------------
This is caused by DomainValidator, which ignores zero-width space.
The code uses java.net.IDN.toASCII which drops such characters, following the
rules in rfc3454.
It's not clear to me that zero-width space should be disallowed.
> EmailValidator and zero-width space
> -----------------------------------
>
> Key: VALIDATOR-442
> URL: https://issues.apache.org/jira/browse/VALIDATOR-442
> Project: Commons Validator
> Issue Type: Bug
> Affects Versions: 1.6
> Reporter: Alessandro Cataldo
> Priority: Minor
>
> EmailValidator does not take into account category "Cf" in the Unicode
> specification.
> String test = "[email protected]*\u200b*"; //Unicode zero-width space
> boolean valid = EmailValidator.getInstance().isValid(test);
> System.out.println("Is valid: "+valid);
> //Returns true
--
This message was sent by Atlassian Jira
(v8.3.4#803005)