summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_tables.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-01-07 21:11:15 +0545
committerPhil Davis <phil.davis@inf.org>2016-01-07 21:11:15 +0545
commit16424666c7c05a1d40f7344e13185ba237324128 (patch)
tree71d249c3649b1862ecd9e66acefd538979dd2202 /src/usr/local/www/diag_tables.php
parent037d58299a997291f7bb882ef0528cd5c59f47d2 (diff)
downloadpfsense-16424666c7c05a1d40f7344e13185ba237324128.zip
pfsense-16424666c7c05a1d40f7344e13185ba237324128.tar.gz
Unset $entries array after clearing table
Without this, when the table is cleared then the "now old and gone" entries are being redisplayed the first time after the clear table happens.
Diffstat (limited to 'src/usr/local/www/diag_tables.php')
-rw-r--r--src/usr/local/www/diag_tables.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/usr/local/www/diag_tables.php b/src/usr/local/www/diag_tables.php
index 2c24d8c..c0d6146 100644
--- a/src/usr/local/www/diag_tables.php
+++ b/src/usr/local/www/diag_tables.php
@@ -90,6 +90,7 @@ if ($_POST['clearall']) {
exec("/sbin/pfctl -t " . escapeshellarg($tablename) . " -T delete " . escapeshellarg($entry), $delete);
}
}
+ unset($entries);
}
if (($tablename == "bogons") || ($tablename == "bogonsv6")) {
OpenPOWER on IntegriCloud