From 24d2cc86aba4392e062cc6fcfc26ff37c5b38531 Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" Date: Fri, 18 Feb 2005 17:34:19 +0000 Subject: [PATCH] Bug 254347: Use of uninitialized value msg in query.cgi Patch By Frederic Buclin , r=mkanat, a=justdave git-svn-id: svn://10.0.0.236/trunk@169396 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/query.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/query.cgi b/mozilla/webtools/bugzilla/query.cgi index 2806cdd242b..065709c2f39 100755 --- a/mozilla/webtools/bugzilla/query.cgi +++ b/mozilla/webtools/bugzilla/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");