incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Chalupka (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-33192) EMailValidator doesn't exclude hyphens at the beginning and end of domain names
Date Thu, 06 Sep 2012 08:39:07 GMT

     [ https://issues.apache.org/jira/browse/FLEX-33192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benjamin Chalupka updated FLEX-33192:
-------------------------------------

    Description: 
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) ==
"-")

  was:
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(domain.length - 1)
== "-")

    
> 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
>            Priority: Minor
>              Labels: EMailValidator, patch
>   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

Mime
View raw message