From 339fc2f4132b1d24ed36a755225d279d18a785db Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 2 Sep 2009 17:54:42 +0000 Subject: [PATCH] allow numeric user and group names --- 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 e9be3ed0..eb17f88f 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -405,7 +405,7 @@ function get_preg($argument, $regexp) { case 'groupname': // first character must be a letter. All letters, numbers, space and ._- are allowed characters case 'username': // first character must be a letter. All letters, numbers, space and ._- are allowed characters case 'hostname': - $pregexpr = '/^[[:alpha:]]([[:alnum:]@\\.\\ \\_\\$-])*$/u'; + $pregexpr = '/^([[:alnum:]@\\.\\ \\_\\$-])+$/u'; break; case 'usernameList': // comma separated list of user names case 'groupnameList': // comma separated list of group names