diff options
author | robiscool <robrob2626@yahoo.com> | 2012-06-18 12:07:30 -0700 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2012-06-18 12:08:27 -0700 |
commit | 0a22474c8a2b7cd75de5d16a058ca6a6462c6841 (patch) | |
tree | b5a24f9633772fb2cc87b51ad55c82af6594ad43 /config/snort-dev | |
parent | 019d7cf4c0500698e897f9b215bd8547bf11b908 (diff) | |
download | pfsense-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/snort-dev')
-rw-r--r-- | config/snort-dev/snort.inc | 7 |
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 */ |