From 7458053b5ebdd89e24203badec5f7c409f08f077 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Thu, 10 Nov 2005 16:16:20 +0000 Subject: [PATCH] allow numbers in first/last name --- 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 f264f27a..a38e5012 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -466,7 +466,7 @@ function get_preg($argument, $regexp) { $pregexpr = '/^[a-zA-Z]([a-zA-Z0-9\\.\\_-])*\\$$/u'; break; case 'realname': // Allow all letters, space and .-_ - $pregexpr = '/^[[:alpha:]]([[:alpha:]\\.\\ \\_-])*$/u'; + $pregexpr = '/^[[:alnum:]]([[:alnum:]\\.\\ \\_-])*$/u'; break; case "telephone": // Allow numbers, space, brackets, /-+. $pregexpr = '/^(\\+)*([0-9\\.\\ \\(\\)\\/-])*$/';