summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkiko%async.com.br <>2004-07-22 06:17:05 +0200
committerkiko%async.com.br <>2004-07-22 06:17:05 +0200
commit5013f383c9a81fae0371e95f634cb1d4b85ba660 (patch)
tree83f8e27a0c10930235ef16a9cf85e5346c89a921
parent8c96e74e3dbb34cdc97282e91f019dfed8df1405 (diff)
downloadbugzilla-5013f383c9a81fae0371e95f634cb1d4b85ba660.tar.gz
bugzilla-5013f383c9a81fae0371e95f634cb1d4b85ba660.tar.xz
Fix for bug 252379: Remove $COOKIE from query.cgi. r=joel, a=justdave.
-rwxr-xr-xquery.cgi10
1 files changed, 5 insertions, 5 deletions
diff --git a/query.cgi b/query.cgi
index e3c261d59..9d4838836 100755
--- 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);
}