allow \"@\" in cn attribute

This commit is contained in:
Roland Gruber 2005-07-26 09:54:35 +00:00
parent 6ccf0e37da
commit f5ad2e6566
1 changed files with 3 additions and 1 deletions

View File

@ -433,7 +433,9 @@ function get_preg($argument, $regexp) {
case 'password': // fixme where do i get an exact regexp? case 'password': // fixme where do i get an exact regexp?
$pregexpr = '/^([[:alnum:]\\ \\|\\#\\*\\,\\.\\;\\:\\_\\+\\!\\%\\&\\/\\?\\{\\(\\)\\}-])*$/u'; $pregexpr = '/^([[:alnum:]\\ \\|\\#\\*\\,\\.\\;\\:\\_\\+\\!\\%\\&\\/\\?\\{\\(\\)\\}-])*$/u';
break; break;
case 'cn': case 'cn': // first character must be a letter. All letters, numbers, space and @._- are allowed characters
$pregexpr = '/^[[:alpha:]]([[:alnum:]@\\.\\ \\_-])*$/u';
break;
case 'groupname': // first character must be a letter. All letters, numbers, space and ._- are allowed characters 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 case 'username': // first character must be a letter. All letters, numbers, space and ._- are allowed characters
$pregexpr = '/^[[:alpha:]]([[:alnum:]\\.\\ \\_-])*$/u'; $pregexpr = '/^[[:alpha:]]([[:alnum:]\\.\\ \\_-])*$/u';