From c7e49d063100294bf9bd4eb88b8e40b0d435d55a Mon Sep 17 00:00:00 2001 From: Greg Date: Thu, 21 Jun 2007 02:05:21 +0000 Subject: [PATCH] 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 --- functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.inc.php b/functions.inc.php index 9e926710..59b9f55f 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -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; }