summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2004-07-12 14:07:33 +0200
committerbugreport%peshkin.net <>2004-07-12 14:07:33 +0200
commit5414dfb90d011ce314bb04e7363a931cb4558291 (patch)
tree969b32d0dab60c9c356376468634390b2b3df5ea /query.cgi
parente06f52663e5bec7db2bf165fc7bffa2b495841da (diff)
downloadbugzilla-5414dfb90d011ce314bb04e7363a931cb4558291.tar.gz
bugzilla-5414dfb90d011ce314bb04e7363a931cb4558291.tar.xz
Bug 250881: Do not set DEFAULT-FORMAT unless standard search is being used
patch by glob r,a=justdave
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi5
1 files changed, 3 insertions, 2 deletions
diff --git a/query.cgi b/query.cgi
index cf601b716..bd60e5b67 100755
--- a/query.cgi
+++ b/query.cgi
@@ -410,8 +410,9 @@ if (!($cgi->param('query_format') || $cgi->param('format'))) {
}
}
-# Set cookie from format unless it's a report
-if ($vars->{'format'} !~ /^report-/i) {
+# Set cookie to current format as default, but only if the format
+# one that we should remember.
+if (grep { $_ eq $vars->{'format'} } qw(specific advanced)) {
$cgi->send_cookie(-name => 'DEFAULTFORMAT',
-value => $vars->{'format'},
-expires => "Fri, 01-Jan-2038 00:00:00 GMT");