commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pål Orby (JIRA) <j...@apache.org>
Subject [jira] Created: (VALIDATOR-278) EmailValidator approves email addresses with hostnames starting with a dash/hyphen
Date Fri, 14 Aug 2009 08:49:14 GMT
EmailValidator approves email addresses with hostnames starting with a dash/hyphen
----------------------------------------------------------------------------------

                 Key: VALIDATOR-278
                 URL: https://issues.apache.org/jira/browse/VALIDATOR-278
             Project: Commons Validator
          Issue Type: Bug
    Affects Versions: 1.3.1 Release
            Reporter: Pål Orby
            Priority: Trivial


This example returns true
{code:java}
EmailValidator.getInstance().isValid("someone@-test.com"); // hostname starts with dash/hyphen
{code}
but should return false according to [Wikipedia|http://en.wikipedia.org/wiki/Hostname]: Hostname
labels cannot begin or end with a hyphen. 



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message