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