Cookie and password change undefined offset in blowfish.php

This commit is contained in:
Marc Delisle
2004-04-21 19:14:18 +00:00
parent ebb2bc005d
commit af8ebced63
2 changed files with 10 additions and 1 deletions

View File

@@ -53,8 +53,16 @@ if (isset($nopass)) {
$result = @PMA_DBI_try_query($local_query) or PMA_mysqlDie(PMA_DBI_getError(), $sql_query, FALSE, $err_url);
// Changes password cookie if required
// Duration = till the browser is closed for password (we don't want this to be saved)
if ($cfg['Server']['auth_type'] == 'cookie') {
setcookie('pma_cookie_password', base64_encode(PMA_blowfish_encrypt($pma_pw,$GLOBALS['cfg']['blowfish_secret'])), 0, $cookie_path, '', $is_https);
setcookie('pma_cookie_password',
PMA_blowfish_encrypt($pma_pw,
$GLOBALS['cfg']['blowfish_secret'] . $GLOBALS['current_time']),
0,
$GLOBALS['cookie_path'], '',
$GLOBALS['is_https']);
} // end if
// For http auth. mode, the "back" link will also enforce new
// authentication