From: Stefan Schantl Date: Fri, 30 Jul 2021 17:54:15 +0000 (+0200) Subject: qos.cgi: Fix truncated status output X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c959b88c7ab8b79df61f3e51c633c0455cfb421;p=people%2Fstevee%2Fipfire-2.x.git 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 --- diff --git a/html/cgi-bin/qos.cgi b/html/cgi-bin/qos.cgi index fa566b5238..d768f95f58 100644 --- a/html/cgi-bin/qos.cgi +++ b/html/cgi-bin/qos.cgi @@ -543,7 +543,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 "
$output
\n"; } else { print "$Lang::tr{'QoS not enabled'}"; } &Header::closebox();