Fix: La fonction validEmail n'acceptait pas les emails en .aero ni .biz
This commit is contained in:
parent
31fa87b4d8
commit
d12592e05b
@ -96,7 +96,7 @@ function ValidEmail($address)
|
|||||||
if (ereg( ".*<(.+)>", $address, $regs)) {
|
if (ereg( ".*<(.+)>", $address, $regs)) {
|
||||||
$address = $regs[1];
|
$address = $regs[1];
|
||||||
}
|
}
|
||||||
if (ereg( "^[^@ ]+@([a-zA-Z0-9\-]+\.)+([a-zA-Z0-9\-]{2}|net|com|gov|mil|org|edu|info|name|int)\$",$address))
|
if (ereg( "^[^@ ]+@([a-zA-Z0-9\-]+\.)+([a-zA-Z0-9\-]{2}|aero|biz|com|edu|gov|info|int|mil|name|net|org)\$",$address))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user