aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-07-11 20:27:21 +0000
committerErmal <eri@pfsense.org>2012-07-11 20:27:21 +0000
commitb70bce8fcf06b81cc9eb6654773f4b95d0117b1e (patch)
treeeae673cae864e4530846e34ead68910ce2e2abf9
parentea3027e321580218f2cded644d2b5f514fb0a953 (diff)
downloadpfsense-packages-b70bce8fcf06b81cc9eb6654773f4b95d0117b1e.tar.gz
pfsense-packages-b70bce8fcf06b81cc9eb6654773f4b95d0117b1e.tar.bz2
pfsense-packages-b70bce8fcf06b81cc9eb6654773f4b95d0117b1e.zip
Unify description extraction from snort alerts
-rw-r--r--config/snort/snort_blocked.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/snort/snort_blocked.php b/config/snort/snort_blocked.php
index b9a5a471..465e5804 100644
--- a/config/snort/snort_blocked.php
+++ b/config/snort/snort_blocked.php
@@ -131,7 +131,7 @@ function get_snort_alert_ip_src($fileline)
function get_snort_alert_disc($fileline)
{
/* disc */
- if (preg_match("/\[\*\*\]\s+(\[[0-9:]+\])\s+(.+)\s+(\[\*\*\])/", $fileline, $matches))
+ if (preg_match("/\[\*\*\] (\[.*\]) (.*) (\[\*\*\])/", $fileline, $matches))
return "{$matches[2]}";
return "";