diff options
author | kiko%async.com.br <> | 2004-04-02 07:44:22 +0000 |
---|---|---|
committer | kiko%async.com.br <> | 2004-04-02 07:44:22 +0000 |
commit | db31bf41614491171c5e8da23e21d64134e366c7 (patch) | |
tree | d1003b74114855ae9cf3dbf6b866c01bf09f5b88 /colchange.cgi | |
parent | Fixing encoding issues introduced in bug 220817: add FAQ documentation for 'W... (diff) | |
download | bugzilla-db31bf41614491171c5e8da23e21d64134e366c7.tar.gz bugzilla-db31bf41614491171c5e8da23e21d64134e366c7.tar.bz2 bugzilla-db31bf41614491171c5e8da23e21d64134e366c7.zip |
Fix for bug 238874: remove %FORM and %COOKIE from colchange.cgi. Does
precisely that, swapping them for references to cgi->param/cookie.
r=vladd, justdave, a=justdave.
Diffstat (limited to 'colchange.cgi')
-rwxr-xr-x | colchange.cgi | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/colchange.cgi b/colchange.cgi index dcd611dad..f7f68c2c0 100755 --- a/colchange.cgi +++ b/colchange.cgi @@ -77,18 +77,18 @@ push(@masterlist, ("short_desc", "short_short_desc")); $vars->{'masterlist'} = \@masterlist; my @collist; -if (defined $::FORM{'rememberedquery'}) { +if (defined $cgi->param('rememberedquery')) { my $splitheader = 0; - if (defined $::FORM{'resetit'}) { + if (defined $cgi->param('resetit')) { @collist = @::default_column_list; } else { foreach my $i (@masterlist) { - if (defined $::FORM{"column_$i"}) { + if (defined $cgi->param("column_$i")) { push @collist, $i; } } - if (exists $::FORM{'splitheader'}) { - $splitheader = $::FORM{'splitheader'}; + if (defined $cgi->param('splitheader')) { + $splitheader = $cgi->param('splitheader'); } } my $list = join(" ", @collist); @@ -98,11 +98,11 @@ if (defined $::FORM{'rememberedquery'}) { -value => $list, -expires => 'Fri, 01-Jan-2038 00:00:00 GMT'); $cgi->send_cookie(-name => 'SPLITHEADER', - -value => $::FORM{'splitheader'}, + -value => $cgi->param('splitheader'), -expires => 'Fri, 01-Jan-2038 00:00:00 GMT'); $vars->{'message'} = "change_columns"; - $vars->{'redirect_url'} = "buglist.cgi?$::FORM{'rememberedquery'}"; + $vars->{'redirect_url'} = "buglist.cgi?".$cgi->param('rememberedquery'); # If we're running on Microsoft IIS, using cgi->redirect discards # the Set-Cookie lines -- workaround is to use the old-fashioned @@ -119,8 +119,8 @@ if (defined $::FORM{'rememberedquery'}) { exit; } -if (defined $::COOKIE{'COLUMNLIST'}) { - @collist = split(/ /, $::COOKIE{'COLUMNLIST'}); +if (defined $cgi->cookie('COLUMNLIST')) { + @collist = split(/ /, $cgi->cookie('COLUMNLIST')); } else { @collist = @::default_column_list; } |