]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 238868: remove %FORM and %COOKIE from show_bug.cgi. Does
authorkiko%async.com.br <>
Fri, 2 Apr 2004 07:46:11 +0000 (07:46 +0000)
committerkiko%async.com.br <>
Fri, 2 Apr 2004 07:46:11 +0000 (07:46 +0000)
that, swapping them for calls to cgi->param/cookie. r=vladd,justdave; a=justdave.

show_bug.cgi

index 4b2459f90dabfb4251570d5e61821645a3336eab..9093550ef33b5fc0d51c836f24e05eb075a70d0c 100755 (executable)
@@ -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;