allow numeric user and group names

This commit is contained in:
Roland Gruber 2009-09-02 17:54:42 +00:00
parent c78c5fad11
commit 339fc2f413
1 changed files with 1 additions and 1 deletions

View File

@ -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