From 646b46f2b6207ae42fa1a441dcebca77ea884240 Mon Sep 17 00:00:00 2001 From: Erwan Taloc Date: Thu, 13 Dec 2012 14:23:28 +0000 Subject: [PATCH] Allow & inside email addresses SVN:trunk[2567] --- core/attributedef.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index 80d54d1e2..0af669fe3 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -2067,7 +2067,7 @@ class AttributeEmailAddress extends AttributeString public function GetValidationPattern() { // return "^([0-9a-zA-Z]([-.\\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\\w]*[0-9a-zA-Z]\\.)+[a-zA-Z]{2,9})$"; - return "^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$"; + return "^[a-zA-Z0-9._&-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$"; } public function GetAsHTML($sValue, $oHostObject = null, $bLocalize = true)