]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/ids.cgi
Fixed problems with ids page.
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / ids.cgi
index 52ca549811addd9f077a2eebc5f629c8fb054173..5d2da21854cf7b4558038d55f8afabfaadbc555e 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) {
@@ -701,9 +701,7 @@ sub getmd5 {
                close($fh);
        }
        
-       my @temp=split(/= /,$md5buf->content);
-       
-       return $temp[1];
+       return $md5buf->content;
 }
 sub downloadrulesfile {
        my $return = &geturl($url);