Commit d5309264 authored by kiko%async.com.br's avatar kiko%async.com.br

Fix for bug 238868: remove %FORM and %COOKIE from show_bug.cgi. Does

that, swapping them for calls to cgi->param/cookie. r=vladd,justdave; a=justdave.
parent db31bf41
...@@ -35,7 +35,7 @@ use Bugzilla::Bug; ...@@ -35,7 +35,7 @@ use Bugzilla::Bug;
my $cgi = Bugzilla->cgi; my $cgi = Bugzilla->cgi;
if ($::FORM{'GoAheadAndLogIn'}) { if ($cgi->param('GoAheadAndLogIn')) {
Bugzilla->login(LOGIN_REQUIRED); Bugzilla->login(LOGIN_REQUIRED);
} else { } else {
Bugzilla->login(); Bugzilla->login();
...@@ -53,7 +53,8 @@ if (!defined $cgi->param('id') && $single) { ...@@ -53,7 +53,8 @@ if (!defined $cgi->param('id') && $single) {
exit; exit;
} }
my $format = GetFormat("bug/show", $::FORM{'format'}, $::FORM{'ctype'}); my $format = GetFormat("bug/show", scalar $cgi->param('format'),
scalar $cgi->param('ctype'));
GetVersionTable(); GetVersionTable();
...@@ -82,8 +83,8 @@ $vars->{'bugs'} = \@bugs; ...@@ -82,8 +83,8 @@ $vars->{'bugs'} = \@bugs;
# Next bug in list (if there is one) # Next bug in list (if there is one)
my @bug_list; my @bug_list;
if ($::COOKIE{"BUGLIST"}) { if ($cgi->cookie("BUGLIST")) {
@bug_list = split(/:/, $::COOKIE{"BUGLIST"}); @bug_list = split(/:/, $cgi->cookie("BUGLIST"));
} }
$vars->{'bug_list'} = \@bug_list; $vars->{'bug_list'} = \@bug_list;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment