allow numeric user and group names
This commit is contained in:
parent
c78c5fad11
commit
339fc2f413
|
@ -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 '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 'username': // first character must be a letter. All letters, numbers, space and ._- are allowed characters
|
||||||
case 'hostname':
|
case 'hostname':
|
||||||
$pregexpr = '/^[[:alpha:]]([[:alnum:]@\\.\\ \\_\\$-])*$/u';
|
$pregexpr = '/^([[:alnum:]@\\.\\ \\_\\$-])+$/u';
|
||||||
break;
|
break;
|
||||||
case 'usernameList': // comma separated list of user names
|
case 'usernameList': // comma separated list of user names
|
||||||
case 'groupnameList': // comma separated list of group names
|
case 'groupnameList': // comma separated list of group names
|
||||||
|
|
Loading…
Reference in New Issue