From d654b80d6dc3d3e4c8a8da6bb9e899c1f6c427a2 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Fri, 12 Oct 2007 11:54:44 +0000 Subject: [PATCH] use full qualified table name in success message (`db`.`table` instead if just table) --- tbl_move_copy.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tbl_move_copy.php b/tbl_move_copy.php index c280b59c7..7b0f762ce 100644 --- a/tbl_move_copy.php +++ b/tbl_move_copy.php @@ -48,8 +48,10 @@ if (PMA_isValid($_REQUEST['new_name'])) { } else { $message = PMA_Message::success('strCopyTableOK'); } - $message->addParam(htmlspecialchars($table)); - $message->addParam(htmlspecialchars($_REQUEST['new_name'])); + $old = PMA_backquote($db) . '.' . PMA_backquote($table); + $message->addParam(htmlspecialchars($old)); + $new = PMA_backquote($_REQUEST['target_db']) . '.' . PMA_backquote($_REQUEST['new_name']); + $message->addParam(htmlspecialchars($new)); /* Check: Work on new table or on old table? */ if (isset($_REQUEST['submit_move']) || PMA_isValid($_REQUEST['switch_to_new'])) {