From: Michael Tremer Date: Tue, 7 Oct 2025 14:53:01 +0000 (+0100) Subject: ids.dat: Remove extra space from command line arguments X-Git-Tag: v2.29-core198~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be69dd03ad9b268c10e29533fd91462d3172ebb2;p=ipfire-2.x.git ids.dat: Remove extra space from command line arguments Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/logs.cgi/ids.dat b/html/cgi-bin/logs.cgi/ids.dat index 2fb0d15ec..5125813e6 100644 --- a/html/cgi-bin/logs.cgi/ids.dat +++ b/html/cgi-bin/logs.cgi/ids.dat @@ -198,7 +198,7 @@ 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", " --output=-"); + my @report_cmd = ("$report_generator_binary", "--output=-"); # Filename for the generated report. my $filename = "suricata-report"; @@ -222,14 +222,14 @@ if ($cgiparams{'ACTION'} eq "$Lang::tr{'generate report'}") { # Parse, which kind of report has been requested. if ($cgiparams{'GENERATE_WHAT'} eq "YEAR") { - push(@report_cmd, " --year=$year"); + push(@report_cmd, "--year=$year"); } elsif ($cgiparams{'GENERATE_WHAT'} eq "MONTH") { - push(@report_cmd, " --month=$month"); - push(@report_cmd, " --year=$year"); + push(@report_cmd, "--month=$month"); + push(@report_cmd, "--year=$year"); } elsif ($cgiparams{'GENERATE_WHAT'} eq "DAY") { - push(@report_cmd, " --day=$day"); - push(@report_cmd, " --month=$month"); - push(@report_cmd, " --year=$year"); + push(@report_cmd, "--day=$day"); + push(@report_cmd, "--month=$month"); + push(@report_cmd, "--year=$year"); } else { # Assign an error message. $errormessage = "Could not generate report - Unsupported request.\n";