allow $ at the end of \"cn\" (needed for hosts)
This commit is contained in:
parent
6ca099161c
commit
55a49a6e51
|
@ -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\\.\\ \\(\\)\\/-])*$/';
|
||||
|
|
Loading…
Reference in New Issue