struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-4395) Make email validator regex comply with RFC 6531
Date Mon, 25 Aug 2014 18:56:57 GMT

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

Lukasz Lenart updated WW-4395:
------------------------------

    Description: 
This is the regex for email validation in Struts:
{noformat}
\\b^['_a-z0-9-\\+]+(\\.['_a-z0-9-\\+]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)\*
\.([a-z]{2}|aero|arpa|asia|biz|com|coop|edu|gov|info|int|jobs|mil|mobi|
museum|name|nato|net|org|pro|tel|travel|xxx)$\\b
{noformat}

This doesn't allow special characters (e.g. àéí, äëö,...).

However, International characters above U+007F are permitted by [RFC 6531|http://tools.ietf.org/html/rfc6531]

Because some mail servers seem to follow this standard, regex should be improved to allow
email addresses valid according to this standard.


  was:
This is the regex for email validation in Struts:

\\b^['_a-z0-9-\\+]+(\\.['_a-z0-9-\\+]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)\*
\.([a-z]{2}|aero|arpa|asia|biz|com|coop|edu|gov|info|int|jobs|mil|mobi|
museum|name|nato|net|org|pro|tel|travel|xxx)$\\b

This doesn't allow special characters (e.g. àéí, äëö,...).

However, International characters above U+007F are permitted by RFC
6531 [1]

Because some mail servers seem to follow this standard, regex should be improved to allow
email addresses valid according to this standard.

[1] http://tools.ietf.org/html/rfc6531



> Make email validator regex comply with RFC 6531 
> ------------------------------------------------
>
>                 Key: WW-4395
>                 URL: https://issues.apache.org/jira/browse/WW-4395
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Core Actions
>    Affects Versions: 2.3.16.3
>            Reporter: Miguel Almeida
>              Labels: email, regex, validation
>
> This is the regex for email validation in Struts:
> {noformat}
> \\b^['_a-z0-9-\\+]+(\\.['_a-z0-9-\\+]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)\*
> \.([a-z]{2}|aero|arpa|asia|biz|com|coop|edu|gov|info|int|jobs|mil|mobi|
> museum|name|nato|net|org|pro|tel|travel|xxx)$\\b
> {noformat}
> This doesn't allow special characters (e.g. àéí, äëö,...).
> However, International characters above U+007F are permitted by [RFC 6531|http://tools.ietf.org/html/rfc6531]
> Because some mail servers seem to follow this standard, regex should be improved to allow
email addresses valid according to this standard.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message