]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids.dat: Remove database path
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 Oct 2025 14:52:33 +0000 (15:52 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 Oct 2025 14:52:33 +0000 (15:52 +0100)
We don't want to have any configuration in random CGI files.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/logs.cgi/ids.dat

index 90e05a52c23c71c5aaa44b0bc76d0136f317daca..2fb0d15ecde36f2f20f2a6b950cc33e37a8898e2 100644 (file)
@@ -21,9 +21,6 @@ use strict;
 # Path where the suricata-report-generator binary lives.
 my $report_generator_binary = "/usr/bin/suricata-report-generator";
 
-# File which contais the alert SQlite database.
-my $database_file = "/var/log/suricata/reporter.db";
-
 require '/var/ipfire/general-functions.pl';
 require "${General::swroot}/lang.pl";
 require "${General::swroot}/header.pl";
@@ -201,8 +198,8 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'export'})
 
 if ($cgiparams{'ACTION'} eq "$Lang::tr{'generate report'}") {
        # Array which contains the report-generator command and it's arguments.
-       my @report_cmd = ("$report_generator_binary", " --database=$database_file", " --output=-");
-       
+       my @report_cmd = ("$report_generator_binary", " --output=-");
+
        # Filename for the generated report.
        my $filename = "suricata-report";
        my $file_extension = "pdf";