]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids.dat: Remove extra space from command line arguments
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 Oct 2025 14:53:01 +0000 (15:53 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 7 Oct 2025 14:53:01 +0000 (15:53 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/logs.cgi/ids.dat

index 2fb0d15ecde36f2f20f2a6b950cc33e37a8898e2..5125813e6171d154c9e902b5dd10ab6118105ba9 100644 (file)
@@ -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";