allow $ at the end of \"cn\" (needed for hosts)

This commit is contained in:
Roland Gruber 2006-02-23 08:37:37 +00:00
parent 6ca099161c
commit 55a49a6e51
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ function get_preg($argument, $regexp) {
break;
case 'realname': // Allow all but \, <, >, =, $, ?
case 'cn':
$pregexpr = '/^[^\\\<>=\\$\\?]+$/';
$pregexpr = '/^[^\\\<>=\\$\\?]+(\\$)?$/';
break;
case "telephone": // Allow numbers, space, brackets, /-+.
$pregexpr = '/^(\\+)*([0-9\\.\\ \\(\\)\\/-])*$/';