From 882f5281a82620fcf02618d7fbe987a1f68a7b94 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 25 Oct 2013 17:38:49 +0000 Subject: [PATCH] fixed email validation --- lam/lib/account.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 5d55b649..93130f52 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -480,7 +480,7 @@ function get_preg($argument, $regexp) { $pregexpr = '/^(\\+)*([0-9a-zA-Z\\.\\ \\(\\)\\/-])*$/'; break; case "email": - $pregexpr = '/^([0-9a-zA-Z+\\/\\._-])+[@]([0-9a-zA-Z-])+([.]([0-9a-zA-Z-])+)*$/'; + $pregexpr = '/^([0-9a-zA-Z!~#+*%\\$\\/\\._-])+[@]([0-9a-zA-Z-])+([.]([0-9a-zA-Z-])+)*$/'; break; case "emailWithName": $pregexpr = '/^([[:alnum:] !~#+*%\\$\\(\\)_-])+ <([0-9a-zA-Z!~#+*%\\$\\/\\._-])+[@]([0-9a-zA-Z-])+([.]([0-9a-zA-Z-])+)*>$/u';