aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/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 49bb9bff..06b3637a 100644
--- a/config/snort/snort_alerts.php
+++ b/config/snort/snort_alerts.php
@@ -85,12 +85,12 @@ if ($_POST['save'])
}
-if ($_GET['clear'])
+if ($_GET['action'] == "clear" || $_POST['clear'])
{
if(file_exists('/var/log/snort/alert'))
{
conf_mount_rw();
- @file_put_content("/var/log/snort/alert", "");
+ @file_put_contents("/var/log/snort/alert", "");
post_delete_logs();
mwexec('/usr/sbin/chown snort:snort /var/log/snort/*', true);
mwexec('/bin/chmod 660 /var/log/snort/*', true);