Michael Ignatysh created VALIDATOR-425:
------------------------------------------

             Summary: UrlValidator fails to validate punycode encode URLs
                 Key: VALIDATOR-425
                 URL: https://issues.apache.org/jira/browse/VALIDATOR-425
             Project: Commons Validator
          Issue Type: Bug
    Affects Versions: 1.6
            Reporter: Michael Ignatysh


When working with non-ASCII characters in URL, domain section of such URLs may 
be encoded with Punycode. 
In such cases, a top level domain may contain "-" character, which fails 
validation. 

Example:
http://кто.ру/ - is a valid URL which will be encoded as:
http://xn--j1ail.xn--p1ag/

The expected behavior is that second URL passes validation.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to