Commit 2cfad107 authored by mkanat%kerio.com's avatar mkanat%kerio.com

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

Patch By Frederic Buclin <LpSolit@gmail.com>, r=mkanat, a=justdave
parent 31edd119
...@@ -443,7 +443,7 @@ if (!($cgi->param('query_format') || $cgi->param('format'))) { ...@@ -443,7 +443,7 @@ if (!($cgi->param('query_format') || $cgi->param('format'))) {
# Set cookie to current format as default, but only if the format # Set cookie to current format as default, but only if the format
# one that we should remember. # one that we should remember.
if (IsValidQueryType($vars->{'format'})) { if (defined($vars->{'format'}) && IsValidQueryType($vars->{'format'})) {
$cgi->send_cookie(-name => 'DEFAULTFORMAT', $cgi->send_cookie(-name => 'DEFAULTFORMAT',
-value => $vars->{'format'}, -value => $vars->{'format'},
-expires => "Fri, 01-Jan-2038 00:00:00 GMT"); -expires => "Fri, 01-Jan-2038 00:00:00 GMT");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment