Skip to content

Commit

Permalink
[security] Risk of BREACH attack
Browse files Browse the repository at this point in the history
Thanks to Michal Čihař for the message suggestion.

Signed-off-by: Marc Delisle <marc@infomarc.info>
  • Loading branch information
lem9 committed Mar 4, 2015
1 parent 631ba4c commit b2f1e89
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions libraries/select_lang.lib.php
Expand Up @@ -600,34 +600,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 b2f1e89

Please sign in to comment.