Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 29B61F207 for ; Tue, 30 Apr 2013 16:22:23 +0000 (UTC) Received: (qmail 12029 invoked by uid 500); 30 Apr 2013 16:22:22 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 11951 invoked by uid 500); 30 Apr 2013 16:22:22 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 11935 invoked by uid 99); 30 Apr 2013 16:22:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Apr 2013 16:22:22 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aharui@adobe.com designates 64.18.1.241 as permitted sender) Received: from [64.18.1.241] (HELO exprod6og123.obsmtp.com) (64.18.1.241) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Apr 2013 16:22:15 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob123.postini.com ([64.18.5.12]) with SMTP ID DSNKUX/vo9RtbQi9RGhkhPH2E4jXbyZvguIo@postini.com; Tue, 30 Apr 2013 09:21:55 PDT Received: from inner-relay-4.eur.adobe.com (inner-relay-4.adobe.com [193.104.215.14]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r3UGIe1v003503; Tue, 30 Apr 2013 09:18:41 -0700 (PDT) Received: from nahub02.corp.adobe.com (nahub02.corp.adobe.com [10.8.189.98]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id r3UGKRGu027801; Tue, 30 Apr 2013 09:21:52 -0700 (PDT) Received: from NAMBX02.corp.adobe.com ([10.8.127.96]) by nahub02.corp.adobe.com ([10.8.189.98]) with mapi; Tue, 30 Apr 2013 09:21:00 -0700 From: Alex Harui To: "dev@flex.apache.org" , "commits@flex.apache.org" Date: Tue, 30 Apr 2013 09:20:57 -0700 Subject: Re: [2/2] git commit: [flex-sdk] - FLEX-24197 user name starting with a dot shoudl be invalid Thread-Topic: [2/2] git commit: [flex-sdk] - FLEX-24197 user name starting with a dot shoudl be invalid Thread-Index: Ac5FZAYBxsK5+kVzTQeuJTQIsfisAAAWqvV+ Message-ID: In-Reply-To: <9192d12d1c704a94b07a89f2faaa4198@git.apache.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-Entourage/13.16.0.130206 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Is "." the only first character that is illegal? What about other punctuation and symbols? Or is it not worth checking for? On 4/29/13 10:31 PM, "jmclean@apache.org" wrote: > FLEX-24197 user name starting with a dot shoudl be invalid >=20 >=20 > Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo > Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/18b0dc3a > Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/18b0dc3a > Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/18b0dc3a >=20 > Branch: refs/heads/develop > Commit: 18b0dc3ac77ef6b3fedbdcd25c78ed4abf0d9768 > Parents: bf540f6 > Author: Justin Mclean > Authored: Tue Apr 30 15:30:56 2013 +1000 > Committer: Justin Mclean > Committed: Tue Apr 30 15:30:56 2013 +1000 >=20 > ---------------------------------------------------------------------- > .../framework/src/mx/validators/EmailValidator.as | 9 +++++++++ > 1 files changed, 9 insertions(+), 0 deletions(-) > ---------------------------------------------------------------------- >=20 >=20 > http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/18b0dc3a/frameworks/= proje > cts/framework/src/mx/validators/EmailValidator.as > ---------------------------------------------------------------------- > diff --git a/frameworks/projects/framework/src/mx/validators/EmailValidat= or.as > b/frameworks/projects/framework/src/mx/validators/EmailValidator.as > index 9c864dd..f928371 100644 > --- a/frameworks/projects/framework/src/mx/validators/EmailValidator.as > +++ b/frameworks/projects/framework/src/mx/validators/EmailValidator.as > @@ -173,6 +173,15 @@ public class EmailValidator extends Validator > } > } >=20 > + // name can't start with a dot > + if (username.charAt(0) =3D=3D '.') > + { > + results.push(new ValidationResult( > + true, baseField, "invalidChar", > + validator.invalidCharError)); > + return results; > + } > + =20 > var domainLen:int =3D domain.length; >=20 > // check for IP address >=20 --=20 Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui