fixed regex for local mail addresses
This commit is contained in:
parent
511c086c32
commit
8dd6e9f50c
|
@ -404,7 +404,7 @@ function get_preg($argument, $regexp) {
|
||||||
$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;
|
break;
|
||||||
case "mailLocalAddress":
|
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;
|
break;
|
||||||
case "postalAddress": // Allow all but \, <, >, =, $, ?
|
case "postalAddress": // Allow all but \, <, >, =, $, ?
|
||||||
case "postalCode":
|
case "postalCode":
|
||||||
|
|
Loading…
Reference in New Issue