aboutsummaryrefslogtreecommitdiffstats
path: root/config/suricata/suricata_alerts.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-09-20 18:03:43 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-12-15 12:04:37 -0500
commit16e975b4421e04052b7f87d6d65690ca4c57119f (patch)
tree4a4f30fe924fa9d58d1ed248501ff5603a4052db /config/suricata/suricata_alerts.php
parentb1d0505eef8c0d30e20adb2d514f7f135acc5e9d (diff)
downloadpfsense-packages-16e975b4421e04052b7f87d6d65690ca4c57119f.tar.gz
pfsense-packages-16e975b4421e04052b7f87d6d65690ca4c57119f.tar.bz2
pfsense-packages-16e975b4421e04052b7f87d6d65690ca4c57119f.zip
Replace calls to @unlink with unlink_if_exists().
Diffstat (limited to 'config/suricata/suricata_alerts.php')
-rw-r--r--config/suricata/suricata_alerts.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/suricata/suricata_alerts.php b/config/suricata/suricata_alerts.php
index 9e4eacf2..35d702eb 100644
--- a/config/suricata/suricata_alerts.php
+++ b/config/suricata/suricata_alerts.php
@@ -399,7 +399,7 @@ if ($_POST['download']) {
readfile("/tmp/{$file_name}");
// Clean up the temp file
- @unlink("/tmp/{$file_name}");
+ unlink_if_exists("/tmp/{$file_name}");
}
else
$savemsg = gettext("An error occurred while creating archive");
@@ -836,7 +836,7 @@ if (file_exists("{$g['varlog_path']}/suricata/suricata_{$if_real}{$suricata_uuid
}
unset($fields, $buf, $tmp);
fclose($fd);
- @unlink("/tmp/alerts_suricata{$suricata_uuid}");
+ unlink_if_exists("/tmp/alerts_suricata{$suricata_uuid}");
}
}
?>