From ef88267ee4d6f763648416ac237cc38c18bd3bd2 Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Sun, 16 Jan 2011 21:22:58 +0200 Subject: Syntax error for allow_snoop validation. --- config/unbound/unbound.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/unbound/unbound.inc b/config/unbound/unbound.inc index 435a1073..7b7c053a 100644 --- a/config/unbound/unbound.inc +++ b/config/unbound/unbound.inc @@ -529,7 +529,7 @@ function unbound_validate($post, $acl=false) { if($acl) { $acls = $post; // Check to ensure values entered is an action that is in the list - if ($acls['aclaction'] != 'refuse' && $acls['aclaction'] != 'allow' && $acls['aclaction'] && 'allow_snoop' && $acls['aclaction'] != 'deny') + if ($acls['aclaction'] != 'refuse' && $acls['aclaction'] != 'allow' && $acls['aclaction'] != 'allow_snoop' && $acls['aclaction'] != 'deny') $input_errors[] = "{$acls['aclaction']} is not a valid ACL Action. Please select one of the four actions defined in the list."; // Make sure there is at least 1 network defined. -- cgit v1.2.3