Skip to content
Permalink
Browse files
bug [security] Risk of BREACH attack
Signed-off-by: Marc Delisle <marc@infomarc.info>
  • Loading branch information
lem9 committed Mar 4, 2015
1 parent 5004dc4 commit e1a68ad02c5b1a516b3787ce114ef6a6be004630
Showing with 4 additions and 24 deletions.
  1. +4 −24 libraries/select_lang.lib.php
@@ -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']

0 comments on commit e1a68ad

Please sign in to comment.