aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/snort/snort_rulesets.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/snort/snort_rulesets.php b/config/snort/snort_rulesets.php
index db887a97..d9f35f69 100644
--- a/config/snort/snort_rulesets.php
+++ b/config/snort/snort_rulesets.php
@@ -55,10 +55,10 @@ function snort_remove_rules($files, $snortdir, $snort_uuid, $if_real) {
return;
conf_mount_rw();
- foreach ($tormv as $file) {
+ foreach ($files as $file) {
@unlink("{$snortdir}/snort_{$snort_uuid}_{$if_real}/rules/{$file}");
if (substr($file, -9) == ".so.rules") {
- $slib = substr($enabled_item, 6, -6);
+ $slib = substr($file, 6, -6);
@unlink("{$snortdir}/snort_{$snort_uuid}_{$if_real}/dynamicrules/{$slib}");
}
}