summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-02-19 02:34:19 +0100
committermkanat%kerio.com <>2005-02-19 02:34:19 +0100
commit2cfad107065b4c3c290d8f3fa93f7c82332523e9 (patch)
tree5f3329b5c36b9fd11fe2d76498b50727ba4fe6b9 /query.cgi
parent31edd11972e360a0773ee071c9b4666c51edfcef (diff)
downloadbugzilla-2cfad107065b4c3c290d8f3fa93f7c82332523e9.tar.gz
bugzilla-2cfad107065b4c3c290d8f3fa93f7c82332523e9.tar.xz
Bug 254347: Use of uninitialized value msg in query.cgi
Patch By Frederic Buclin <LpSolit@gmail.com>, r=mkanat, a=justdave
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/query.cgi b/query.cgi
index 2806cdd24..065709c2f 100755
--- a/query.cgi
+++ b/query.cgi
@@ -443,7 +443,7 @@ if (!($cgi->param('query_format') || $cgi->param('format'))) {
# Set cookie to current format as default, but only if the format
# one that we should remember.
-if (IsValidQueryType($vars->{'format'})) {
+if (defined($vars->{'format'}) && IsValidQueryType($vars->{'format'})) {
$cgi->send_cookie(-name => 'DEFAULTFORMAT',
-value => $vars->{'format'},
-expires => "Fri, 01-Jan-2038 00:00:00 GMT");