unbound: next round of logic fix

This commit is contained in:
Franco Fichtner 2018-04-01 08:55:02 +02:00
parent 1a932c8538
commit 59c97dfcdc

View File

@ -67,7 +67,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
do_input_validation($pconfig, $reqdfields, $reqdfieldsn, $input_errors);
if (!empty($pconfig['host']) && (!is_hostname($pconfig['host']) || $pconfig['host'] != '*')) {
if (!empty($pconfig['host']) && !is_hostname($pconfig['host']) && $pconfig['host'] != '*') {
$input_errors[] = gettext("The hostname can only contain the characters A-Z, 0-9 and '-'.");
}