Skip to content

Commit

Permalink
bug [security] Risk of BREACH attack
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Delisle <marc@infomarc.info>
  • Loading branch information
lem9 committed Mar 4, 2015
1 parent 5004dc4 commit e1a68ad
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions libraries/select_lang.lib.php
Expand Up @@ -521,34 +521,14 @@ function PMA_langList()


// now, that we have loaded the language strings we can send the errors
if ($GLOBALS['lang_failed_cfg']) {
if ($GLOBALS['lang_failed_cfg']
|| $GLOBALS['lang_failed_cookie']
|| $GLOBALS['lang_failed_request']) {
trigger_error(
sprintf(
__('Unknown language: %1$s.'),
htmlspecialchars($GLOBALS['lang_failed_cfg'])
),
__('Ignoring unsupported language code'),
E_USER_ERROR
);
}
if ($GLOBALS['lang_failed_cookie']) {
trigger_error(
sprintf(
__('Unknown language: %1$s.'),
htmlspecialchars($GLOBALS['lang_failed_cookie'])
),
E_USER_ERROR
);
}
if ($GLOBALS['lang_failed_request']) {
trigger_error(
sprintf(
__('Unknown language: %1$s.'),
htmlspecialchars($GLOBALS['lang_failed_request'])
),
E_USER_ERROR
);
}

unset(
$line, $fall_back_lang, $GLOBALS['lang_failed_cfg'],
$GLOBALS['lang_failed_cookie'], $GLOBALS['lang_failed_request']
Expand Down

0 comments on commit e1a68ad

Please sign in to comment.