Bug 254347: Use of uninitialized value msg in query.cgi

Patch By Frederic Buclin <LpSolit@gmail.com>, r=mkanat, a=justdave


git-svn-id: svn://10.0.0.236/trunk@169396 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%kerio.com
2005-02-18 17:34:19 +00:00
parent bda3536b1a
commit 24d2cc86ab

View File

@@ -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");