You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2015/01/04 05:09:34 UTC
[jira] [Resolved] (VALIDATOR-278) EmailValidator approves email
addresses with hostnames starting with a dash/hyphen
[ https://issues.apache.org/jira/browse/VALIDATOR-278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb resolved VALIDATOR-278.
----------------------------
Resolution: Fixed
Fix Version/s: 1.4.0 Release
Not sure exactly when this was fixed.
URL: http://svn.apache.org/r1649289
Log:
VALIDATOR-315 - EmailValidator approves email addresses with hostnames starting with a dash/hyphen
Fixed previously - added test to prove it
Modified:
commons/proper/validator/trunk/src/test/java/org/apache/commons/validator/routines/EmailValidatorTest.java
Modified: svn:log at Sun Jan 4 04:07:15 2015
------------------------------------------------------------------------------
--- svn:log (original)
+++ svn:log Sun Jan 4 04:07:15 2015
@@ -1,2 +1,2 @@
-VALIDATOR-315 - EmailValidator approves email addresses with hostnames starting with a dash/hyphen
+VALIDATOR-278 - EmailValidator approves email addresses with hostnames starting with a dash/hyphen
Fixed previously - added test to prove it
> 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
> Fix For: 1.4.0 Release
>
>
> These examples returns true
> {code:java}
> EmailValidator.getInstance().isValid("someone@-test.com"); // hostname starts with dash/hyphen
> EmailValidator.getInstance().isValid("someone@test-.com"); // hostname ends with dash/hypen
> {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 was sent by Atlassian JIRA
(v6.3.4#6332)