From: Michael Tremer Date: Tue, 7 Oct 2025 14:52:33 +0000 (+0100) Subject: ids.dat: Remove database path X-Git-Tag: v2.29-core198~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25a006fd6cd06e559fbc913d31d4662b6831e2ac;p=ipfire-2.x.git ids.dat: Remove database path We don't want to have any configuration in random CGI files. Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/logs.cgi/ids.dat b/html/cgi-bin/logs.cgi/ids.dat index 90e05a52c..2fb0d15ec 100644 --- a/html/cgi-bin/logs.cgi/ids.dat +++ b/html/cgi-bin/logs.cgi/ids.dat @@ -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";