allow % in user/group names
This commit is contained in:
parent
1d5d39f7f6
commit
0e170f56ff
|
@ -463,7 +463,7 @@ function get_preg($argument, $regexp) {
|
||||||
case 'groupname': // all letters, numbers, space and ._- are allowed characters
|
case 'groupname': // all letters, numbers, space and ._- are allowed characters
|
||||||
case 'username':
|
case 'username':
|
||||||
case 'hostname':
|
case 'hostname':
|
||||||
$pregexpr = '/^([[:alnum:]#@\\.\\ \\_\\$-])+$/u';
|
$pregexpr = '/^([[:alnum:]%#@\\.\\ \\_\\$-])+$/u';
|
||||||
break;
|
break;
|
||||||
case 'krbUserName':
|
case 'krbUserName':
|
||||||
$pregexpr = '/^([[:alnum:]#@\\/\\.\\ \\_\\$-])+$/u';
|
$pregexpr = '/^([[:alnum:]#@\\/\\.\\ \\_\\$-])+$/u';
|
||||||
|
@ -473,7 +473,7 @@ function get_preg($argument, $regexp) {
|
||||||
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
|
||||||
$pregexpr = '/^([[:alnum:]#@\\.\\ \\_-])+(,([[:alnum:]#@\\.\\ \\_-])+)*$/u';
|
$pregexpr = '/^([[:alnum:]%#@\\.\\ \\_-])+(,([[:alnum:]%#@\\.\\ \\_-])+)*$/u';
|
||||||
break;
|
break;
|
||||||
case 'realname': // Allow all but \, <, >, =, $, ?
|
case 'realname': // Allow all but \, <, >, =, $, ?
|
||||||
case 'cn':
|
case 'cn':
|
||||||
|
|
Loading…
Reference in New Issue