From 59c97dfcdc126213382a4cf2850d86ffae5741c3 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Sun, 1 Apr 2018 08:55:02 +0200 Subject: [PATCH] unbound: next round of logic fix --- src/www/services_unbound_host_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 '-'."); }