You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Rafał Figas (Jira)" <ji...@apache.org> on 2026/03/31 15:21:00 UTC
[jira] [Commented] (VALIDATOR-442) EmailValidator and zero-width space
[ https://issues.apache.org/jira/browse/VALIDATOR-442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18069960#comment-18069960 ]
Rafał Figas commented on VALIDATOR-442:
---------------------------------------
Accordingly to [[RFC 5892|[https://datatracker.ietf.org/doc/html/rfc5892|https://datatracker.ietf.org/doc/html/rfc5892)]]] in [[Appendix B.1|[https://datatracker.ietf.org/doc/html/rfc5892#appendix-B.1]]] those characters (among many others) are not allowed to be used in domain names (especially because of phishing risks):
!image-2026-03-31-17-20-01-002.png!
> 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
> Attachments: image-2026-03-31-17-20-01-002.png
>
>
> EmailValidator does not take into account category "Cf" in the Unicode specification.
> String test = "test@email.com*\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.20.10#820010)