mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
Allows for tld of 2-6 characters
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@6 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
parent
9481a093a6
commit
c7e49d0631
@ -187,7 +187,7 @@ function check_email ($email)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (preg_match ('/^[-!#$%&\'*+\\.\/0-9=?A-Z^_{|}~]+' . '@' . '([-0-9A-Z]+\.)+' . '([0-9A-Z]){2,4}$/i', trim ($ce_email)))
|
||||
if (preg_match ('/^[-!#$%&\'*+\\.\/0-9=?A-Z^_{|}~]+' . '@' . '([-0-9A-Z]+\.)+' . '([0-9A-Z]){2,6}$/i', trim ($ce_email)))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user