You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Stefan Pi (JIRA)" <ji...@apache.org> on 2015/03/19 13:58:38 UTC

[jira] [Created] (VALIDATOR-363) UrlValidator rejects path having two or more successive dots

Stefan Pi created VALIDATOR-363:
-----------------------------------

             Summary: UrlValidator rejects path having two or more successive dots
                 Key: VALIDATOR-363
                 URL: https://issues.apache.org/jira/browse/VALIDATOR-363
             Project: Commons Validator
          Issue Type: Bug
    Affects Versions: 1.4.1 Release
            Reporter: Stefan Pi


Minmal example:
{code}
UrlValidator urlValidator = new UrlValidator();
boolean isValidOneDot = urlValidator.isValid("http://www.example.org/hello.world/"); // evaluates to true
boolean isValidTwoDots = urlValidator.isValid("http://www.example.org/hello..world/"); // evaluates to false
{code}

Real world example:
{code}
UrlValidator urlValidator = new UrlValidator();
boolean isValidRealWord = urlValidator.isValid("http://forum.golem.de/sonstiges/trollwiese/apple-bashing-in-3...2...1...go/98,4089549,4089549,read.html#msg-4089549"); // evaluates to false
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)