summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4f7701a)
raw | patch | inline | side by side (parent: 4f7701a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 17 Nov 2010 10:01:46 +0000 (10:01 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 17 Nov 2010 10:01:46 +0000 (10:01 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@20262 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/utils/class_tests.inc | patch | blob | history |
index 2073d4973680e8583168a68d7930ac1d4ec263eb..02ba9bc31a07cc574366458ca6c03a71632bcc27 100644 (file)
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);
}
}