From 45bbaa80da20f13db7dd9a805e5e48b75fbdf7ec Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 14 Jan 2011 14:47:30 +0000 Subject: [PATCH] Updated mail address check for templates, include {}[] to be able to set placeholder git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20592 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/utils/class_tests.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-core/include/utils/class_tests.inc b/gosa-core/include/utils/class_tests.inc index 602ce0623..6b2e283a2 100644 --- a/gosa-core/include/utils/class_tests.inc +++ b/gosa-core/include/utils/class_tests.inc @@ -205,7 +205,7 @@ class tests { return (TRUE); } if ($template){ - return preg_match ("/^[._a-z0-9%\+-]+@[_a-z0-9-]+(\.[a-z0-9-]+)(\.[a-z0-9-]+)*$/i", + return preg_match ("/^[._a-z0-9{\[\]}%\+-]+@[_a-{}\[\]%z0-9-]+(\.[a-z0-9-]+)(\.[a-z0-9-]+)*$/i", $address); } else { return preg_match ("/^[._a-z0-9\+-]+@[_a-z0-9-]+(\.[a-z0-9i-]+)(\.[a-z0-9-]+)*$/i", -- 2.30.2