aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-11-01 16:38:31 +0000
committerErmal <eri@pfsense.org>2011-11-01 16:38:47 +0000
commitb4542701c3f275b74a309f0db7682086b6d7b461 (patch)
tree99476e296396f7b2eafcfc6f0929e03c05d72f3f /config/snort
parentbd98bb058bb36c84e9066188e6ce49c914de5f25 (diff)
downloadpfsense-packages-b4542701c3f275b74a309f0db7682086b6d7b461.tar.gz
pfsense-packages-b4542701c3f275b74a309f0db7682086b6d7b461.tar.bz2
pfsense-packages-b4542701c3f275b74a309f0db7682086b6d7b461.zip
Fixes #1765. Correctly identify the clear action that comes through POST or GET
Diffstat (limited to 'config/snort')
-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);