mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-12 04:21:30 +01:00
Fix: ajout de l'extension d'adresse mail "coop"
This commit is contained in:
@@ -103,7 +103,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}|aero|biz|com|edu|gov|info|int|mil|name|net|org)\$",$address))
|
if (ereg( "^[^@ ]+@([a-zA-Z0-9\-]+\.)+([a-zA-Z0-9\-]{2}|coop|aero|biz|com|edu|gov|info|int|mil|name|net|org)\$",$address))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user