Applied PMA_Util::unQuote to table name extracted from the RENAME command

This commit is contained in:
ayushchd 2013-02-26 18:32:27 +05:30
parent 7112e7f416
commit bd4e284e4b

View File

@ -69,7 +69,7 @@ if (! empty($sql_query)) {
// do a dynamic reload if table is RENAMED
// (by sending the instruction to the AJAX response handler)
if (preg_match('/^RENAME\s+TABLE\s+(.*?)\s+TO\s+(.*?)($|;|\s)/i', $sql_query, $rename_table_names)) {
$ajax_reload['table_name'] = $rename_table_names[2];
$ajax_reload['table_name'] = PMA_Util::unQuote($rename_table_names[2]);
$ajax_reload['reload'] = true;
}