[-] BO : fix #PSCFI-4878

This commit is contained in:
lLefevre
2012-04-11 15:42:42 +00:00
parent 7f8a2a06c3
commit 792e9a25df
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ class ValidateCore
*/
public static function isEmail($email)
{
return !empty($email) && preg_match('/^[a-z0-9!#$%&\'*+\/=?^`{}|~_-]+[.a-z0-9!#$%&\'*+\/=?^`{}|~_-]*@[a-z0-9]+[._a-z0-9-]*\.[a-z0-9]+$/ui', $email);
return !empty($email) && preg_match('/^[a-z\p{L}0-9!#$%&\'*+\/=?^`{}|~_-]+[.a-z\p{L}0-9!#$%&\'*+\/=?^`{}|~_-]*@[a-z\p{L}0-9]+[._a-z\p{L}0-9-]*\.[a-z0-9]+$/ui', $email);
}
/**