Skip to content
Permalink
Browse files
[security] Risk of BREACH attack
Thanks to Michal Čihař for the message suggestion.

Signed-off-by: Marc Delisle <marc@infomarc.info>
  • Loading branch information
lem9 committed Mar 3, 2015
1 parent 996e731 commit d0f109dfe3b345094d7ceb49df0dbb68efc032ed
Showing with 4 additions and 24 deletions.
  1. +4 −24 libraries/select_lang.lib.php
@@ -592,34 +592,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']

0 comments on commit d0f109d

Please sign in to comment.