patch #2918831 [export] Missing backquotes on reserved words
This commit is contained in:
@@ -16,6 +16,8 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
|
|||||||
thanks to Greg Roach - fisharebest
|
thanks to Greg Roach - fisharebest
|
||||||
- patch #2915168 [import] Incorrect parsing of DELIMITER keyword,
|
- patch #2915168 [import] Incorrect parsing of DELIMITER keyword,
|
||||||
thanks to Greg Roach - fisharebest
|
thanks to Greg Roach - fisharebest
|
||||||
|
- patch #2918831 [export] Missing backquotes on reserved words,
|
||||||
|
thanks to Virsacer - virsacer
|
||||||
|
|
||||||
3.2.4.0 (2009-12-02)
|
3.2.4.0 (2009-12-02)
|
||||||
- bug [engines] Innodb_buffer_pool_pages_latched no longer returned in status
|
- bug [engines] Innodb_buffer_pool_pages_latched no longer returned in status
|
||||||
|
@@ -890,16 +890,20 @@ function PMA_getTableList($db, $tables = null, $limit_offset = 0, $limit_count =
|
|||||||
*/
|
*/
|
||||||
function PMA_backquote($a_name, $do_it = true)
|
function PMA_backquote($a_name, $do_it = true)
|
||||||
{
|
{
|
||||||
if (! $do_it) {
|
if (is_array($a_name)) {
|
||||||
|
foreach ($a_name as &$data) {
|
||||||
|
$data = PMA_backquote($data, $do_it);
|
||||||
|
}
|
||||||
return $a_name;
|
return $a_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_array($a_name)) {
|
if (! $do_it) {
|
||||||
$result = array();
|
global $PMA_SQPdata_forbidden_word;
|
||||||
foreach ($a_name as $key => $val) {
|
global $PMA_SQPdata_forbidden_word_cnt;
|
||||||
$result[$key] = PMA_backquote($val);
|
|
||||||
}
|
if(! PMA_STR_binarySearchInArr(strtoupper($a_name), $PMA_SQPdata_forbidden_word, $PMA_SQPdata_forbidden_word_cnt)) {
|
||||||
return $result;
|
return $a_name;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// '0' is also empty for php :-(
|
// '0' is also empty for php :-(
|
||||||
|
Reference in New Issue
Block a user