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

Patch By Frederic Buclin <LpSolit@gmail.com>, r=mkanat, a=justdave
This commit is contained in:
mkanat%kerio.com 2005-02-18 17:34:19 +00:00
Родитель e1e9758c0c
Коммит 48a0ca6d12
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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