Merge branch 'QA_4_0'

This commit is contained in:
Marc Delisle 2013-07-26 09:06:15 -04:00
commit 4e40875d02
2 changed files with 9 additions and 0 deletions

View File

@ -41,6 +41,7 @@ phpMyAdmin - ChangeLog
interface to enable generating CREATE DATABASE and USE (false by default)
- bug #4012 Crash on CSV file import
- bug #4009 Statistic Monitor shows only last 3 digits in graph
- bug #3998 Non-permanent SQL history not working
4.0.4.1 (2013-06-30)
- [security] Global variables scope injection vulnerability (see PMASA-2013-7)

View File

@ -905,6 +905,14 @@ function PMA_getHistory($username)
{
$cfgRelation = PMA_getRelationsParam();
/**
* if db-based history is disabled but there exists a session-based
* history, use it
*/
if (! $GLOBALS['cfg']['QueryHistoryDB'] && isset($_SESSION['sql_history'])) {
return array_reverse($_SESSION['sql_history']);
}
if (! $cfgRelation['historywork']) {
return false;
}