From e7fe6e16ef65bbb95aa3641e36ce6dfc7ea9bde8 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Thu, 13 Feb 2014 20:11:05 +0000 Subject: [PATCH] functions.inc.php: - check_domains(): raise TLD limit to 13 chars - even if I seriously doubt someone wants to use such a long TLD ;-) ( https://sourceforge.net/p/postfixadmin/bugs/310/ again) git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1637 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 d278fc51..8463c51a 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -198,7 +198,7 @@ function language_selector() { * TODO: skip DNS check if the domain exists in PostfixAdmin? */ function check_domain ($domain) { - if (!preg_match ('/^([-0-9A-Z]+\.)+' . '([0-9A-Z]){2,11}$/i', ($domain))) { + if (!preg_match ('/^([-0-9A-Z]+\.)+' . '([0-9A-Z]){2,13}$/i', ($domain))) { return sprintf(Config::lang('pInvalidDomainRegex'), htmlentities($domain)); }