Permalink
Browse files

Applied PMA_Util::unQuote to table name extracted from the RENAME com…

…mand
  • Loading branch information...
1 parent 7112e7f commit bd4e284e4b754e93f2ac516ad9622034f60d6394 @ayushchd ayushchd committed Feb 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 import.php
View
@@ -69,7 +69,7 @@
// 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;
}

0 comments on commit bd4e284

Please sign in to comment.