diff options
author | digdug3 <digdug3@zonnet.nl> | 2012-07-26 09:50:02 +0300 |
---|---|---|
committer | digdug3 <digdug3@zonnet.nl> | 2012-07-26 09:50:02 +0300 |
commit | 61bd1dcdac6ccb34c0354d98c03545f0002a2313 (patch) | |
tree | 2f8ea237e3b9e587092018b492cb2a316509907f | |
parent | a171abeee65f03c2f127ef635e21e883d93964be (diff) | |
download | pfsense-packages-61bd1dcdac6ccb34c0354d98c03545f0002a2313.tar.gz pfsense-packages-61bd1dcdac6ccb34c0354d98c03545f0002a2313.tar.bz2 pfsense-packages-61bd1dcdac6ccb34c0354d98c03545f0002a2313.zip |
Update config/snort/snort_blocked.php
Snort 2.9.2.3 pkg v. 2.5.1 Blocked Tab fix, fixes Snort blocked descriptions with ",". (Not just N/A)
-rw-r--r-- | config/snort/snort_blocked.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/config/snort/snort_blocked.php b/config/snort/snort_blocked.php index 10d0bb60..aa6d9080 100644 --- a/config/snort/snort_blocked.php +++ b/config/snort/snort_blocked.php @@ -208,10 +208,9 @@ if ($pconfig['brefresh'] == 'on') if ($fd) { /* 0 1 2 3 4 5 6 7 8 9 10 11 12 /* File format timestamp,sig_generator,sig_id,sig_rev,msg,proto,src,srcport,dst,dstport,id,classification,priority */ - while(($fileline = @fgets($fd))) { - if (empty($fileline)) + while (($fields = fgetcsv($fd, 1000, ',', '"')) !== FALSE) { + if(count($fields) < 11) continue; - $fields = explode(",", $fileline); if (isset($tmpblocked[$fields[6]])) { if (!is_array($src_ip_list[$fields[6]])) |