summaryrefslogtreecommitdiffstats
path: root/colchange.cgi
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2016-04-14 21:03:00 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2016-04-14 21:03:00 +0200
commit90d86a9744883ccc120a0a955ffade72990e1505 (patch)
tree07fd038fc41a2de0259f2f7c6a9de0d55e8a1e34 /colchange.cgi
parentae22da8710d00232d28b7c6b9093d2b7e33b0627 (diff)
downloadbugzilla-90d86a9744883ccc120a0a955ffade72990e1505.tar.gz
bugzilla-90d86a9744883ccc120a0a955ffade72990e1505.tar.xz
Bug 1088022 - Bump min version to CGI 4.09
r=dkl
Diffstat (limited to 'colchange.cgi')
-rwxr-xr-xcolchange.cgi11
1 files changed, 6 insertions, 5 deletions
diff --git a/colchange.cgi b/colchange.cgi
index e1e78f443..f2da452de 100755
--- a/colchange.cgi
+++ b/colchange.cgi
@@ -71,10 +71,10 @@ if (!$user->is_timetracker) {
$vars->{'columns'} = $columns;
my @collist;
-if (defined $cgi->param('rememberedquery')) {
+if (my $rememberedquery = $cgi->param('rememberedquery')) {
my $search;
- if (defined $cgi->param('saved_search')) {
- $search = new Bugzilla::Search::Saved($cgi->param('saved_search'));
+ if (my $saved_search = $cgi->param('saved_search')) {
+ $search = new Bugzilla::Search::Saved($saved_search);
}
my $token = $cgi->param('token');
@@ -91,7 +91,7 @@ if (defined $cgi->param('rememberedquery')) {
} else {
if (defined $cgi->param("selected_columns")) {
@collist = grep { exists $columns->{$_} }
- $cgi->param("selected_columns");
+ $cgi->multi_param("selected_columns");
}
if (defined $cgi->param('splitheader')) {
$splitheader = $cgi->param('splitheader')? 1: 0;
@@ -131,7 +131,8 @@ if (defined $cgi->param('rememberedquery')) {
$search->update();
}
- my $params = new Bugzilla::CGI($cgi->param('rememberedquery'));
+ utf8::decode($rememberedquery);
+ my $params = new Bugzilla::CGI($rememberedquery);
$params->param('columnlist', join(",", @collist));
$vars->{'redirect_url'} = "buglist.cgi?".$params->query_string();