You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Cyrill Zadra (JIRA)" <ji...@apache.org> on 2013/01/23 23:25:12 UTC
[jira] [Resolved] (FLEX-33192) EMailValidator doesn't exclude
hyphens at the beginning and end of domain names
[ https://issues.apache.org/jira/browse/FLEX-33192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cyrill Zadra resolved FLEX-33192.
---------------------------------
Resolution: Fixed
Fix Version/s: Apache Flex 4.10.0
Author: czadra
Date: Wed Jan 23 22:18:35 2013
New Revision: 1437779
URL: http://svn.apache.org/viewvc?rev=1437779&view=rev
Log:
FLEX-33192 patch by Benjamin Chalupka, added 2 mustella tests for EmailValidator
> EMailValidator doesn't exclude hyphens at the beginning and end of domain names
> -------------------------------------------------------------------------------
>
> Key: FLEX-33192
> URL: https://issues.apache.org/jira/browse/FLEX-33192
> Project: Apache Flex
> Issue Type: Bug
> Components: Validators
> Reporter: Benjamin Chalupka
> Assignee: Cyrill Zadra
> Priority: Minor
> Labels: EMailValidator, EasyFix, patch
> Fix For: Apache Flex 4.10.0
>
> Original Estimate: 10m
> Remaining Estimate: 10m
>
> E-Mail addresses like test@-online.de or test@online-.net aren't allowed and often misspelled by users (for example with an e-mail of the german provider t-online.de).
> To fix it change the line 246 of the EMailValidator from:
> if (domain.charAt(0) == ".")
> to
> if (domain.charAt(0) == "." || domain.charAt(0) == "-" || domain.charAt(periodPos - 1) == "-")
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira