From 5f7dcc18d5243fba59ec0a71fbc75ebb8594e34e Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Mon, 12 Nov 2007 01:26:01 +0000 Subject: [PATCH] functions.inc.php - allow longer TLDs (.museum, .travel) git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@214 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 a9b2f2ce..9baf22b4 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -194,7 +194,7 @@ function check_string ($var) // TODO: make check_domain able to handle as example .local domains function check_domain ($domain) { - if (preg_match ('/([-0-9A-Z]+\.)+' . '([0-9A-Z]){2,4}$/i', trim ($domain))) + if (preg_match ('/([-0-9A-Z]+\.)+' . '([0-9A-Z]){2,6}$/i', trim ($domain))) { return true; }