mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
qos.cgi: Fix truncated status output
In the past only the fist line of the status output has been passed to the cleanhtml() function and displayed. Now the whole output will be converted to a string, cleaned and displyed on the WUI again. Fixes #12666. Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org> Reviewed-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
e254168907
commit
c4522a1764
@@ -534,7 +534,7 @@ elsif ($qossettings{'ACTION'} eq $Lang::tr{'status'} )
|
||||
if ($qossettings{'ENABLED'} eq 'on'){
|
||||
my $output = "";
|
||||
my @output = &General::system_output("/usr/local/bin/qosctrl", "status");
|
||||
$output = &Header::cleanhtml(@output[0],"y");
|
||||
$output = &Header::cleanhtml(join("", @output), "y");
|
||||
print "<pre>$output</pre>\n";
|
||||
} else { print "$Lang::tr{'QoS not enabled'}"; }
|
||||
&Header::closebox();
|
||||
|
||||
Reference in New Issue
Block a user