added check for hostObject values
This commit is contained in:
parent
6d5f012fe4
commit
6506182502
|
@ -386,6 +386,9 @@ function get_preg($argument, $regexp) {
|
||||||
case 'hostname':
|
case 'hostname':
|
||||||
$pregexpr = '/^([[:alnum:]@\\.\\ \\_\\$-])+$/u';
|
$pregexpr = '/^([[:alnum:]@\\.\\ \\_\\$-])+$/u';
|
||||||
break;
|
break;
|
||||||
|
case 'hostObject':
|
||||||
|
$pregexpr = '/^[!]?([[:alnum:]@\\.\\ \\_\\$\\*-])+$/u';
|
||||||
|
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
|
||||||
$pregexpr = '/^([[:alnum:]@\\.\\ \\_-])+(,([[:alnum:]@\\.\\ \\_-])+)*$/u';
|
$pregexpr = '/^([[:alnum:]@\\.\\ \\_-])+(,([[:alnum:]@\\.\\ \\_-])+)*$/u';
|
||||||
|
|
Loading…
Reference in New Issue