From 23a7f1bfda0bd578fcf52c5d27c6dd8b85044804 Mon Sep 17 00:00:00 2001 From: Roland Singer Date: Sun, 14 Apr 2019 16:25:15 +0200 Subject: [PATCH] allow TLD with 1 char --- functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.inc.php b/functions.inc.php index 6686b0f9..2161e2c2 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -224,7 +224,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,13}$/i', ($domain))) { + if (!preg_match('/^([-0-9A-Z]+\.)+' . '([-0-9A-Z]){1,13}$/i', ($domain))) { return sprintf(Config::lang('pInvalidDomainRegex'), htmlentities($domain)); }