2
0
forked from Wavyzz/dolibarr

New: Can edit sending methods

This commit is contained in:
Laurent Destailleur
2009-01-22 22:55:51 +00:00
parent 341c03d4ee
commit feef7bc05a
11 changed files with 70 additions and 45 deletions

View File

@@ -47,7 +47,7 @@ function ValidEmail($address)
if (eregi(".*<(.+)>", $address, $regs)) {
$address = $regs[1];
}
if (eregi("^[^@ ]+@([a-zA-Z0-9\-]+\.)+([a-zA-Z0-9\-]{2}|coop|aero|biz|com|edu|gov|info|int|mil|name|net|org)\$",$address))
if (eregi("^[^@ ]+@([a-zA-Z0-9\-]+\.)+([a-zA-Z0-9\-]{2}|asso|aero|biz|com|coop|edu|gov|info|int|mil|name|net|org|pro)\$",$address))
{
return true;
}