Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 50964 invoked from network); 14 Aug 2009 09:07:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Aug 2009 09:07:42 -0000 Received: (qmail 10858 invoked by uid 500); 14 Aug 2009 09:07:48 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 10748 invoked by uid 500); 14 Aug 2009 09:07:48 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 10736 invoked by uid 99); 14 Aug 2009 09:07:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2009 09:07:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2009 09:07:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E1196234C1EE for ; Fri, 14 Aug 2009 02:07:14 -0700 (PDT) Message-ID: <1722071452.1250240834921.JavaMail.jira@brutus> Date: Fri, 14 Aug 2009 02:07:14 -0700 (PDT) From: =?utf-8?Q?P=C3=A5l_Orby_=28JIRA=29?= To: issues@commons.apache.org Subject: [jira] Updated: (VALIDATOR-278) EmailValidator approves email addresses with hostnames starting with a dash/hyphen In-Reply-To: <866462275.1250239754793.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/VALIDATOR-278?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:all-tabpanel ] P=C3=A5l Orby updated VALIDATOR-278: ------------------------------- Description:=20 These examples returns true {code:java} EmailValidator.getInstance().isValid("someone@-test.com"); // hostname star= ts 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/wik= i/Hostname]: Hostname labels cannot begin or end with a hyphen.=20 was: This example returns true {code:java} EmailValidator.getInstance().isValid("someone@-test.com"); // hostname star= ts with dash/hyphen {code} but should return false according to [Wikipedia|http://en.wikipedia.org/wik= i/Hostname]: Hostname labels cannot begin or end with a hyphen.=20 > EmailValidator approves email addresses with hostnames starting with a da= sh/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=C3=A5l Orby > Priority: Trivial > > These examples returns true > {code:java} > EmailValidator.getInstance().isValid("someone@-test.com"); // hostname st= arts with dash/hyphen > EmailValidator.getInstance().isValid("someone@test-.com"); // hostname en= ds with dash/hypen > {code} > but should return false according to [Wikipedia|http://en.wikipedia.org/w= iki/Hostname]: Hostname labels cannot begin or end with a hyphen.=20 --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.