public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] qos.cgi: Fix truncated status output
@ 2021-07-30 17:57 Stefan Schantl
  2021-07-30 18:58 ` Bernhard Bitsch
  2021-08-04 14:28 ` Michael Tremer
  0 siblings, 2 replies; 3+ messages in thread
From: Stefan Schantl @ 2021-07-30 17:57 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 941 bytes --]

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(a)ipfire.org>
---
 html/cgi-bin/qos.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/html/cgi-bin/qos.cgi b/html/cgi-bin/qos.cgi
index fa566b523..d768f95f5 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 "<pre>$output</pre>\n";
 	} else { print "$Lang::tr{'QoS not enabled'}"; }
 	&Header::closebox();
-- 
2.30.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] qos.cgi: Fix truncated status output
  2021-07-30 17:57 [PATCH] qos.cgi: Fix truncated status output Stefan Schantl
@ 2021-07-30 18:58 ` Bernhard Bitsch
  2021-08-04 14:28 ` Michael Tremer
  1 sibling, 0 replies; 3+ messages in thread
From: Bernhard Bitsch @ 2021-07-30 18:58 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1116 bytes --]

Reviewed-by: Bernhard Bitsch <bbitsch(a)ipfire.org>

Am 30.07.2021 um 19:57 schrieb Stefan Schantl:
> 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(a)ipfire.org>
> ---
>   html/cgi-bin/qos.cgi | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/html/cgi-bin/qos.cgi b/html/cgi-bin/qos.cgi
> index fa566b523..d768f95f5 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 "<pre>$output</pre>\n";
>   	} else { print "$Lang::tr{'QoS not enabled'}"; }
>   	&Header::closebox();
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] qos.cgi: Fix truncated status output
  2021-07-30 17:57 [PATCH] qos.cgi: Fix truncated status output Stefan Schantl
  2021-07-30 18:58 ` Bernhard Bitsch
@ 2021-08-04 14:28 ` Michael Tremer
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Tremer @ 2021-08-04 14:28 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1162 bytes --]

Reviewed-by: Michael Tremer <michael.tremer(a)ipfire.org>

> On 30 Jul 2021, at 19:57, Stefan Schantl <stefan.schantl(a)ipfire.org> wrote:
> 
> 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(a)ipfire.org>
> ---
> html/cgi-bin/qos.cgi | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/html/cgi-bin/qos.cgi b/html/cgi-bin/qos.cgi
> index fa566b523..d768f95f5 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 "<pre>$output</pre>\n";
> 	} else { print "$Lang::tr{'QoS not enabled'}"; }
> 	&Header::closebox();
> -- 
> 2.30.2
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-04 14:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-30 17:57 [PATCH] qos.cgi: Fix truncated status output Stefan Schantl
2021-07-30 18:58 ` Bernhard Bitsch
2021-08-04 14:28 ` Michael Tremer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox