allow "$" as last character in common name (needed for old hosts)
This commit is contained in:
parent
80b77d202a
commit
1135c5d709
|
@ -452,7 +452,7 @@ function get_preg($argument, $regexp) {
|
|||
$pregexpr = '/^([[:alnum:]\\ \\|\\#\\*\\,\\.\\;\\:\\_\\+\\!\\%\\&\\/\\?\\{\\(\\)\\}-])*$/u';
|
||||
break;
|
||||
case 'cn': // first character must be a letter. All letters, numbers, space and @._- are allowed characters
|
||||
$pregexpr = '/^[[:alpha:]]([[:alnum:]@\\.\\ \\_-])*$/u';
|
||||
$pregexpr = '/^[[:alpha:]]([[:alnum:]@\\.\\ \\_-])*(\\$)?$/u';
|
||||
break;
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue