From 34a2a3dc9c6f07aee61881557dea3ae3d2fd2192 Mon Sep 17 00:00:00 2001 From: Collectd Packaging Team Date: Thu, 20 Jan 2022 14:40:42 +0000 Subject: [PATCH] cgi-param-in-list-context Gbp-Pq: Name cgi-param-in-list-context.patch --- contrib/collection3/lib/Collectd/Graph/Common.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/collection3/lib/Collectd/Graph/Common.pm b/contrib/collection3/lib/Collectd/Graph/Common.pm index 31c530f..6193db6 100644 --- a/contrib/collection3/lib/Collectd/Graph/Common.pm +++ b/contrib/collection3/lib/Collectd/Graph/Common.pm @@ -526,7 +526,7 @@ sub get_selected_files for (qw(hostname plugin plugin_instance type type_instance)) { my $part = $_; - my @temp = param ($part); + my @temp = multi_param ($part); if (!@temp) { next; @@ -547,9 +547,9 @@ sub get_selected_files sub get_timespan_selection { my $ret = 86400; - if (param ('timespan')) + if (scalar param ('timespan')) { - my $temp = int (param ('timespan')); + my $temp = int (scalar param ('timespan')); if ($temp && ($temp > 0)) { $ret = $temp; @@ -568,7 +568,7 @@ sub get_host_selection $ret{$_} = 0; } - for (param ('hostname')) + for (multi_param ('hostname')) { my $host = _sanitize_generic_allow_minus ($_); if (defined ($ret{$host})) @@ -597,7 +597,7 @@ sub get_plugin_selection $ret{$_} = 0; } - for (param ('plugin')) + for (multi_param ('plugin')) { if (defined ($ret{$_})) { -- 2.30.2