summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_unbound_acls.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-07-16 09:17:33 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-07-16 09:17:33 -0300
commitcb79dc0d5fe420e8c3bedfc25964c7e21bea3088 (patch)
tree5c6d95acf72cd00084f22178a48a7a6afd466f3b /usr/local/www/services_unbound_acls.php
parent026f3639155f2ad534502f40fec50b7a87231e0e (diff)
downloadpfsense-cb79dc0d5fe420e8c3bedfc25964c7e21bea3088.zip
pfsense-cb79dc0d5fe420e8c3bedfc25964c7e21bea3088.tar.gz
Fix acl item removal
Diffstat (limited to 'usr/local/www/services_unbound_acls.php')
-rw-r--r--usr/local/www/services_unbound_acls.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/services_unbound_acls.php b/usr/local/www/services_unbound_acls.php
index 49a420c..d4ce1a0 100644
--- a/usr/local/www/services_unbound_acls.php
+++ b/usr/local/www/services_unbound_acls.php
@@ -93,7 +93,8 @@ if ($_POST) {
$input_errors[] = gettext("You must enter a valid IPv6 netmask for {$networkacl[$x]['acl_network']}/{$networkacl[$x]['mask']}.");
} else
$input_errors[] = gettext("You must enter a valid IPv4 address for {$networkacl[$x]['acl_network']}.");
- }
+ } else if (isset($networkacl[$x]))
+ unset($networkacl[$x]);
}
if (!$input_errors) {
OpenPOWER on IntegriCloud