From: mkanat%kerio.com <> Date: Sat, 19 Feb 2005 01:34:19 +0000 (+0000) Subject: Bug 254347: Use of uninitialized value msg in query.cgi X-Git-Tag: bugzilla-2.19.3~280 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cfad107065b4c3c290d8f3fa93f7c82332523e9;p=thirdparty%2Fbugzilla.git Bug 254347: Use of uninitialized value msg in query.cgi Patch By Frederic Buclin , r=mkanat, a=justdave --- diff --git a/query.cgi b/query.cgi index 2806cdd242..065709c2f3 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");