diff --git a/src/www/services_unbound_host_edit.php b/src/www/services_unbound_host_edit.php index e77642331..4099bc290 100644 --- a/src/www/services_unbound_host_edit.php +++ b/src/www/services_unbound_host_edit.php @@ -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 '-'."); }