fixed regex for local mail addresses

This commit is contained in:
Roland Gruber 2010-09-04 13:51:25 +00:00
parent 511c086c32
commit 8dd6e9f50c
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ function get_preg($argument, $regexp) {
$pregexpr = '/^([0-9a-zA-Z+\\/\\._-])+[@]([0-9a-zA-Z-])+([.]([0-9a-zA-Z-])+)*$/';
break;
case "mailLocalAddress":
$pregexpr = '/^([0-9a-zA-Z\\._-])+([@]([0-9a-zA-Z-])+([.]([0-9a-zA-Z-])+)*)?$/';
$pregexpr = '/^([0-9a-zA-Z+\\/\\._-])+([@]([0-9a-zA-Z-])+([.]([0-9a-zA-Z-])+)*)?$/';
break;
case "postalAddress": // Allow all but \, <, >, =, $, ?
case "postalCode":