Applied PMA_Util::unQuote to table name extracted from the RENAME command
This commit is contained in:
parent
7112e7f416
commit
bd4e284e4b
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user