aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2012-06-18 12:07:30 -0700
committerrobiscool <robrob2626@yahoo.com>2012-06-18 12:08:27 -0700
commit0a22474c8a2b7cd75de5d16a058ca6a6462c6841 (patch)
treeb5a24f9633772fb2cc87b51ad55c82af6594ad43 /config
parent019d7cf4c0500698e897f9b215bd8547bf11b908 (diff)
downloadpfsense-packages-0a22474c8a2b7cd75de5d16a058ca6a6462c6841.tar.gz
pfsense-packages-0a22474c8a2b7cd75de5d16a058ca6a6462c6841.tar.bz2
pfsense-packages-0a22474c8a2b7cd75de5d16a058ca6a6462c6841.zip
snort-dev, fix rule selection gen code for snort.conf
Diffstat (limited to 'config')
-rw-r--r--config/snort-dev/snort.inc7
1 files changed, 2 insertions, 5 deletions
diff --git a/config/snort-dev/snort.inc b/config/snort-dev/snort.inc
index b72c806e..267093c7 100644
--- a/config/snort-dev/snort.inc
+++ b/config/snort-dev/snort.inc
@@ -1641,16 +1641,13 @@ function generate_snort_conf($id, $if_real, $snort_uuid)
/* generate rule sections to load */
- $enabled_rulesets = $snortcfg['rulesets'];
$selected_rules_sections = "";
- if (!empty($enabled_rulesets)) {
- $enabled_rulesets_array = explode("\|\|", $enabled_rulesets);
+ if (!empty($snortcfg['rulesets'])) {
+ $enabled_rulesets_array = explode('||', $snortcfg['rulesets']);
foreach($enabled_rulesets_array as $enabled_item)
$selected_rules_sections .= "include \$RULE_PATH/{$enabled_item}\n";
}
- /////////////////////////////
-
/* preprocessor code */
/* def perform_stat */