From eb8297385cc2d9d95e117787bc8b4e2fd7b6b551 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 27 Sep 2004 19:09:48 +0000 Subject: [PATCH] fixed regex for user/group lists --- 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 1a799b4d..17ea5192 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -436,7 +436,7 @@ function get_preg($argument, $regexp) { break; case 'usernameList': // comma separated list of user names case 'groupnameList': // comma separated list of group names - $pregexpr = '[[:alpha:]]([[:alnum:]\\.\\ \\_-])(,[[:alpha:]]([[:alnum:]\\.\\ \\_-]))*'; + $pregexpr = '/^[[:alpha:]]([[:alnum:]\\.\\ \\_-])*(,[[:alpha:]]([[:alnum:]\\.\\ \\_-])*)*$/'; break; case 'hostname': // first character must be letter, last must be $. Only normal letters, numbers and ._- are allowed $pregexpr = '/^[a-zA-Z]([a-zA-Z0-9\\.\\_-])*\\$$/';