forked from Wavyzz/dolibarr
Fix: La fonction validEmail n'acceptait pas les emails en .aero ni .biz
This commit is contained in:
@@ -96,7 +96,7 @@ function ValidEmail($address)
|
||||
if (ereg( ".*<(.+)>", $address, $regs)) {
|
||||
$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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user