fixed email regex (patch 1403922)
This commit is contained in:
parent
bcf4060801
commit
25c792cf23
|
@ -470,10 +470,10 @@ function get_preg($argument, $regexp) {
|
|||
$pregexpr = '/^(\\+)*([0-9\\.\\ \\(\\)\\/-])*$/';
|
||||
break;
|
||||
case "email":
|
||||
$pregexpr = '/^([0-9a-z\\._-])+[@]([0-9a-z-])+([.]([0-9a-z-])+)*$/';
|
||||
$pregexpr = '/^([0-9a-zA-Z\\._-])+[@]([0-9a-zA-Z-])+([.]([0-9a-zA-Z-])+)*$/';
|
||||
break;
|
||||
case "mailLocalAddress":
|
||||
$pregexpr = '/^([0-9a-z\\._-])+([@]([0-9a-z-])+([.]([0-9a-z-])+)*)?$/';
|
||||
$pregexpr = '/^([0-9a-zA-Z\\._-])+([@]([0-9a-zA-Z-])+([.]([0-9a-zA-Z-])+)*)?$/';
|
||||
break;
|
||||
case "postalAddress": // Allow all but \, <, >, =, $, ?
|
||||
case "postalCode":
|
||||
|
|
Loading…
Reference in New Issue