aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_alerts.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-09-18 21:32:24 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-09-18 21:32:24 -0400
commitbd466aee5cba77c2e0cfba0ec141320d9416f801 (patch)
tree4813e4545babd863593909f8aa06b34d8f86a43b /config/snort/snort_alerts.php
parent5cff64ffa70be00598c4fb76566f345bd5a329c4 (diff)
downloadpfsense-packages-bd466aee5cba77c2e0cfba0ec141320d9416f801.tar.gz
pfsense-packages-bd466aee5cba77c2e0cfba0ec141320d9416f801.tar.bz2
pfsense-packages-bd466aee5cba77c2e0cfba0ec141320d9416f801.zip
More replace PHP @unlink() with system unlink_if_exists().
Diffstat (limited to 'config/snort/snort_alerts.php')
-rwxr-xr-xconfig/snort/snort_alerts.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/snort/snort_alerts.php b/config/snort/snort_alerts.php
index 54988395..2396b71e 100755
--- a/config/snort/snort_alerts.php
+++ b/config/snort/snort_alerts.php
@@ -401,7 +401,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");
@@ -748,7 +748,7 @@ if (file_exists("{$snortlogdir}/snort_{$if_real}{$snort_uuid}/alert")) {
$counter++;
}
fclose($fd);
- @unlink("/tmp/alert_{$snort_uuid}");
+ unlink_if_exists("/tmp/alert_{$snort_uuid}");
}
}
?>