From 56b38eaa6f93de9521136ad377db13a145973d69 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Fri, 7 Aug 2015 21:10:01 +0530 Subject: [PATCH] Pre-load rename and copy operations with current database name Signed-off-by: Madhura Jayaratne --- libraries/operations.lib.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libraries/operations.lib.php b/libraries/operations.lib.php index 57450f9237..67f6c55423 100644 --- a/libraries/operations.lib.php +++ b/libraries/operations.lib.php @@ -75,8 +75,8 @@ function PMA_getHtmlForRenameDatabase($db) . ''; $html_output .= ''; + . 'maxlength="64" size="30" class="textfield" required="required" ' + . 'value="' . htmlspecialchars($db). '"/>'; if (! PMA_DRIZZLE) { if (isset($GLOBALS['db_priv']) && $GLOBALS['db_priv'] @@ -201,7 +201,8 @@ function PMA_getHtmlForCopyDatabase($db) $html_output .= __('Copy database to') . '' . '
' + . 'class="textfield" value="' . htmlspecialchars($db). '" ' + . 'required="required" />
' . PMA_Util::getRadioFields( 'what', $choices, 'data', true );