]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 252379: Remove $COOKIE from query.cgi. r=joel, a=justdave.
authorkiko%async.com.br <>
Thu, 22 Jul 2004 04:17:05 +0000 (04:17 +0000)
committerkiko%async.com.br <>
Thu, 22 Jul 2004 04:17:05 +0000 (04:17 +0000)
query.cgi

index e3c261d598935ac87a2f409d8079f0b2ca190978..9d4838836773323c547546e30dd9f771abfa1107 100755 (executable)
--- a/query.cgi
+++ b/query.cgi
@@ -70,14 +70,14 @@ my $userid = $user ? $user->id : 0;
 # and nuke the cookie. This is required for Bugzilla 2.8 and earlier.
 if ($user) {
     my @oldquerycookies;
-    foreach my $i (keys %::COOKIE) {
+    foreach my $i ($cgi->cookie()) {
         if ($i =~ /^QUERY_(.*)$/) {
-            push(@oldquerycookies, [$1, $i, $::COOKIE{$i}]);
+            push(@oldquerycookies, [$1, $i, $cgi->cookie($i)]);
         }
     }
-    if (defined $::COOKIE{'DEFAULTQUERY'}) {
+    if (defined $cgi->cookie('DEFAULTQUERY')) {
         push(@oldquerycookies, [$::defaultqueryname, 'DEFAULTQUERY',
-                                $::COOKIE{'DEFAULTQUERY'}]);
+                                $cgi->cookie('DEFAULTQUERY')]);
     }
     if (@oldquerycookies) {
         foreach my $ref (@oldquerycookies) {
@@ -379,7 +379,7 @@ if ($user) {
 my $deforder;
 my @orders = ('Bug Number', 'Importance', 'Assignee', 'Last Changed');
 
-if ($::COOKIE{'LASTORDER'}) {
+if ($cgi->cookie('LASTORDER')) {
     $deforder = "Reuse same sort as last time";
     unshift(@orders, $deforder);
 }