aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 */