mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
allow TLD with 1 char
This commit is contained in:
parent
3fc5c74040
commit
23a7f1bfda
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user