зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
e1e9758c0c
Коммит
48a0ca6d12
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче