summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkiko%async.com.br <>2004-04-02 09:46:11 +0200
committerkiko%async.com.br <>2004-04-02 09:46:11 +0200
commitd53092644b5c21c2a63561572c94b83f23492147 (patch)
treea40086aff813e2ef4c7f44edec3de182bdb6031e
parentdb31bf41614491171c5e8da23e21d64134e366c7 (diff)
downloadbugzilla-d53092644b5c21c2a63561572c94b83f23492147.tar.gz
bugzilla-d53092644b5c21c2a63561572c94b83f23492147.tar.xz
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.
-rwxr-xr-xshow_bug.cgi9
1 files changed, 5 insertions, 4 deletions
diff --git a/show_bug.cgi b/show_bug.cgi
index 4b2459f90..9093550ef 100755
--- a/show_bug.cgi
+++ b/show_bug.cgi
@@ -35,7 +35,7 @@ use Bugzilla::Bug;
my $cgi = Bugzilla->cgi;
-if ($::FORM{'GoAheadAndLogIn'}) {
+if ($cgi->param('GoAheadAndLogIn')) {
Bugzilla->login(LOGIN_REQUIRED);
} else {
Bugzilla->login();
@@ -53,7 +53,8 @@ if (!defined $cgi->param('id') && $single) {
exit;
}
-my $format = GetFormat("bug/show", $::FORM{'format'}, $::FORM{'ctype'});
+my $format = GetFormat("bug/show", scalar $cgi->param('format'),
+ scalar $cgi->param('ctype'));
GetVersionTable();
@@ -82,8 +83,8 @@ $vars->{'bugs'} = \@bugs;
# Next bug in list (if there is one)
my @bug_list;
-if ($::COOKIE{"BUGLIST"}) {
- @bug_list = split(/:/, $::COOKIE{"BUGLIST"});
+if ($cgi->cookie("BUGLIST")) {
+ @bug_list = split(/:/, $cgi->cookie("BUGLIST"));
}
$vars->{'bug_list'} = \@bug_list;