Fixed problems with ids page.
authorJan Paul Tuecking <earl@ipfire.org>
Wed, 22 Jul 2009 16:32:45 +0000 (18:32 +0200)
committerJan Paul Tuecking <earl@ipfire.org>
Wed, 22 Jul 2009 16:32:45 +0000 (18:32 +0200)
html/cgi-bin/ids.cgi

index 1cf5b8d..5d2da21 100644 (file)
@@ -96,7 +96,7 @@ if (-e "/etc/snort/snort.conf") {
        open(FILE, "/etc/snort/snort.conf") or die 'Unable to read snort config file.';
        @snortconfig = <FILE>;
        close(FILE);
-       open(FILE, ">/etc/snort/snort.conf") or die 'Unable to write snort config file.';
+       open(FILE, "/etc/snort/snort.conf") or die 'Unable to write snort config file.';
 
     my @rules = `cd /etc/snort/rules/ && ls *.rules`;    # With this loop the rule might be display with correct rulepath set
        foreach (@rules) {