diff options
author | Phil Davis <phil.davis@inf.org> | 2016-01-07 21:11:15 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-01-07 21:11:15 +0545 |
commit | 16424666c7c05a1d40f7344e13185ba237324128 (patch) | |
tree | 71d249c3649b1862ecd9e66acefd538979dd2202 /src/usr/local/www/diag_tables.php | |
parent | 037d58299a997291f7bb882ef0528cd5c59f47d2 (diff) | |
download | pfsense-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.php | 1 |
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")) { |