Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 557D5200CD2 for ; Thu, 27 Jul 2017 13:32:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 541E3169F51; Thu, 27 Jul 2017 11:32:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 99CC7169F44 for ; Thu, 27 Jul 2017 13:32:09 +0200 (CEST) Received: (qmail 68353 invoked by uid 500); 27 Jul 2017 11:32:08 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 68343 invoked by uid 99); 27 Jul 2017 11:32:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jul 2017 11:32:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 5581BC02BE for ; Thu, 27 Jul 2017 11:32:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.502 X-Spam-Level: X-Spam-Status: No, score=-99.502 tagged_above=-999 required=6.31 tests=[KAM_NUMSUBJECT=0.5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id t3cQYgJTbGLO for ; Thu, 27 Jul 2017 11:32:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 4A9A45FD6F for ; Thu, 27 Jul 2017 11:32:06 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 661F3E0D39 for ; Thu, 27 Jul 2017 11:32:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 49A8D24D25 for ; Thu, 27 Jul 2017 11:32:03 +0000 (UTC) Date: Thu, 27 Jul 2017 11:32:03 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4395) Make email validator regex comply with RFC 6531 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 27 Jul 2017 11:32:10 -0000 [ https://issues.apache.org/jira/browse/WW-4395?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1610308= 1#comment-16103081 ]=20 Lukasz Lenart commented on WW-4395: ----------------------------------- The problem is then with client-side validation, it uses the same RegEx, se= when want to switch to {{commons-validator}} this can be a breaking change= , though. > Make email validator regex comply with RFC 6531=20 > ------------------------------------------------ > > 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 > Fix For: 2.5.x > > > 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. =C3=A0=C3=A9=C3=AD, =C3=A4=C3= =AB=C3=B6,...). > 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 i= mproved to allow email addresses valid according to this standard. -- This message was sent by Atlassian JIRA (v6.4.14#64029)