summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
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");