allow "$" as last character in common name (needed for old hosts)

This commit is contained in:
Roland Gruber 2005-10-26 09:23:44 +00:00
parent 80b77d202a
commit 1135c5d709
1 changed files with 1 additions and 1 deletions

View File

@ -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