Fix merge error

This commit is contained in:
billz 2020-09-23 09:10:44 +01:00
parent f8b5f8fdfc
commit 31edb21a76

View file

@ -477,8 +477,9 @@ function validateCidr($cidr)
return $netmask <= 128;
}
return false;
}
// Validates a host or FQDN
// Validates a host or FQDN
function validate_host($host) {
return preg_match('/^([a-z\d](-*[a-z\d])*)(\.([a-z\d](-*[a-z\d])*))*$/i', $host);
}