From 2ba2f84667c00a0d46b0afba4b14b853dafe052b Mon Sep 17 00:00:00 2001 From: Ermal Date: Sat, 14 Jul 2012 16:28:23 +0000 Subject: Avoid issues thay might arise from same name used in lists --- config/snort/snort.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/snort/snort.inc b/config/snort/snort.inc index fe6ad11b..bc7d4b13 100644 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -1043,8 +1043,8 @@ function snort_generate_conf($snortcfg) { $suppress = snort_find_list($snortcfg['suppresslistname'], 'suppress'); if (!empty($suppress)) { $suppress_data = str_replace("\r", "", base64_decode($suppress['suppresspassthru'])); - @file_put_contents("{$snortcfgdir}/{$snortcfg['suppresslistname']}", $suppress_data); - $suppress_file_name = "include {$snortcfgdir}/{$snortcfg['suppresslistname']}"; + @file_put_contents("{$snortcfgdir}/supp{$snortcfg['suppresslistname']}", $suppress_data); + $suppress_file_name = "include {$snortcfgdir}/supp{$snortcfg['suppresslistname']}"; } /* set the snort performance model */ -- cgit v1.2.3