1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-28 07:41:55 +03:00

bug Escape database and table names for partition maintenance

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
Madhura Jayaratne
2015-05-13 14:01:48 +05:30
parent 2b41e09a48
commit 50b2985a3e
2 changed files with 3 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ phpMyAdmin - ChangeLog
- bug #4512 ForceSSL Redirect Check
- bug Undefined index collation_connection
- bug Error when the reporting server is down
- bug Escape database and table names for partition maintenance
4.4.6.0 (2015-05-07)
- bug #4890 webkitStorageInfo and webkitIndexedDB is deprecated

View File

@@ -30,8 +30,8 @@ class PMA_Partition
if (PMA_Partition::havePartitioning()) {
return $GLOBALS['dbi']->fetchResult(
"SELECT `PARTITION_NAME` FROM `information_schema`.`PARTITIONS`"
. " WHERE `TABLE_SCHEMA` = '" . $db
. "' AND `TABLE_NAME` = '" . $table . "'"
. " WHERE `TABLE_SCHEMA` = '" . PMA_Util::sqlAddSlashes($db)
. "' AND `TABLE_NAME` = '" . PMA_Util::sqlAddSlashes($table) . "'"
);
} else {
return array();