From a14d6d9bb402deeeaffb289dadc622474053b3fc Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 4 Feb 2013 13:35:20 +0000 Subject: [PATCH] Update email regex to allow & and other weird stuff --- etemplate/inc/class.etemplate_widget_url.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate_widget_url.inc.php b/etemplate/inc/class.etemplate_widget_url.inc.php index 1fef96dadf..84321f9ab0 100644 --- a/etemplate/inc/class.etemplate_widget_url.inc.php +++ b/etemplate/inc/class.etemplate_widget_url.inc.php @@ -21,7 +21,7 @@ class etemplate_widget_url extends etemplate_widget /** * Regexes for validating */ - const EMAIL_PREG = '([a-z0-9][a-z0-9._-]*)?[a-z0-9_-]@([a-z0-9ÄÖÜäöüß](|[a-z0-9ÄÖÜäöüß_-]*[a-z0-9ÄÖÜäöüß])\.)+[a-z]{2,6}'; + const EMAIL_PREG = '([a-z0-9][a-z0-9._\&\+-]*)?[a-z0-9_]@([a-z0-9ÄÖÜäöüß](|[a-z0-9ÄÖÜäöüß_-]*[a-z0-9ÄÖÜäöüß])\.)+[a-z]{2,6}'; /** * Validate input