From: hickert Date: Wed, 17 Nov 2010 10:01:46 +0000 (+0000) Subject: Added missing, X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=874ad3b732c4d49acf521bc4eac59032c8682800;p=gosa.git Added missing, git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@20262 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/utils/class_tests.inc b/gosa-core/include/utils/class_tests.inc index 2073d4973..02ba9bc31 100644 --- a/gosa-core/include/utils/class_tests.inc +++ b/gosa-core/include/utils/class_tests.inc @@ -204,10 +204,10 @@ 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", + return preg_match ("/^[._a-z0-9\+-]+@[_a-z0-9-]+(\.[a-z0-9i-]+)(\.[a-z0-9-]+)*$/i", $address); } }