Merge branch 'QA_4_6'

Conflicts:
	po/sk.po
This commit is contained in:
Deven Bansod 2016-09-28 20:09:45 +05:30
commit d6571ef86c
2 changed files with 9 additions and 6 deletions

View File

@ -76,6 +76,7 @@ phpMyAdmin - ChangeLog
- issue #12511 Clarify documentation on ArbitraryServerRegexp
- issue #12508 Remove duplicate code in SQL escaping
- issue #12475 Cleanup code for getting table information
- issue #12579 phpMyAdmin's export of a Select statment without a FROM clause generates Wrong SQL
4.6.4 (2016-08-16)
- issue [security] Weaknesses with cookie encryption, see PMASA-2016-29

View File

@ -67,13 +67,15 @@ if (! empty($sql_query)) {
}
// Rebuilding the SELECT and FROM clauses.
$replaces = array(
array(
'FROM', 'FROM ' . SqlParser\Components\ExpressionArray::build(
$parser->statements[0]->from
if (count($parser->statements[0]->from) > 0) {
$replaces = array(
array(
'FROM', 'FROM ' . SqlParser\Components\ExpressionArray::build(
$parser->statements[0]->from
),
),
),
);
);
}
// Checking if the WHERE clause has to be replaced.
if ((!empty($where_clause)) && (is_array($where_clause))) {