allow TLD with 1 char

pull/265/head
Roland Singer 6 years ago
parent 3fc5c74040
commit 23a7f1bfda

@ -224,7 +224,7 @@ function language_selector() {
* @todo skip DNS check if the domain exists in PostfixAdmin? * @todo skip DNS check if the domain exists in PostfixAdmin?
*/ */
function check_domain($domain) { 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)); return sprintf(Config::lang('pInvalidDomainRegex'), htmlentities($domain));
} }

Loading…
Cancel
Save