added check for hostObject values

This commit is contained in:
Roland Gruber 2010-04-03 13:31:13 +00:00
parent 6d5f012fe4
commit 6506182502
1 changed files with 3 additions and 0 deletions

View File

@ -386,6 +386,9 @@ function get_preg($argument, $regexp) {
case 'hostname':
$pregexpr = '/^([[:alnum:]@\\.\\ \\_\\$-])+$/u';
break;
case 'hostObject':
$pregexpr = '/^[!]?([[:alnum:]@\\.\\ \\_\\$\\*-])+$/u';
break;
case 'usernameList': // comma separated list of user names
case 'groupnameList': // comma separated list of group names
$pregexpr = '/^([[:alnum:]@\\.\\ \\_-])+(,([[:alnum:]@\\.\\ \\_-])+)*$/u';