summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_showbogons.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-08-20 16:33:09 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-08-20 16:33:09 -0400
commitacf23e63aceb182a748f1f618bf87957747d7886 (patch)
treeb3bf99e198116f64882f5f1f84fb5caa7f5bad2d /usr/local/www/diag_showbogons.php
parent0c348a2b4d94bfb33e20d3a057eb88dda802335b (diff)
downloadpfsense-acf23e63aceb182a748f1f618bf87957747d7886.zip
pfsense-acf23e63aceb182a748f1f618bf87957747d7886.tar.gz
Only remove tmp file if we succeed
Diffstat (limited to 'usr/local/www/diag_showbogons.php')
-rw-r--r--usr/local/www/diag_showbogons.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/diag_showbogons.php b/usr/local/www/diag_showbogons.php
index 4f75c70..f5f8fc1 100644
--- a/usr/local/www/diag_showbogons.php
+++ b/usr/local/www/diag_showbogons.php
@@ -43,8 +43,8 @@ if($_POST['Download']) {
if(file_exists("/tmp/bogons")) {
$savemsg = "The bogons database has been updated.";
exec("egrep -v '^192.168.0.0/16|^172.16.0.0/12|^10.0.0.0/8' /tmp/bogons > /etc/bogons");
+ exec("rm /tmp/bogons");
}
- exec("rm /tmp/bogons");
}
$bogons = `cat /etc/bogons`;
OpenPOWER on IntegriCloud