bug #1814733 win: copy db to mixed name db fails
This commit is contained in:
@@ -24,6 +24,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
|
|||||||
- bug #1811519 Can't delete user with a german umlaut.
|
- bug #1811519 Can't delete user with a german umlaut.
|
||||||
- bug #1811519 [privileges] fixed used collation for accessing mysql.user in server privileges
|
- bug #1811519 [privileges] fixed used collation for accessing mysql.user in server privileges
|
||||||
- it should not be possible to move or copy a table to information_schema
|
- it should not be possible to move or copy a table to information_schema
|
||||||
|
- bug #1814733 win: copy db to mixed name db fails
|
||||||
|
|
||||||
2.11.1.2 (not yet released)
|
2.11.1.2 (not yet released)
|
||||||
- fixed XSS in server_status.php, thanks to Omer Singer, The DigiTrust Group
|
- fixed XSS in server_status.php, thanks to Omer Singer, The DigiTrust Group
|
||||||
|
@@ -51,6 +51,13 @@ if (strlen($db) &&
|
|||||||
// PMA_DBI_query($local_query);
|
// PMA_DBI_query($local_query);
|
||||||
//} else {
|
//} else {
|
||||||
// please indent ->
|
// please indent ->
|
||||||
|
|
||||||
|
// lower_case_table_names=1 `DB` becomes `db`
|
||||||
|
$lower_case_table_names = PMA_DBI_fetch_value('SHOW VARIABLES LIKE "lower_case_table_names"', 0, 1);
|
||||||
|
if ($lower_case_table_names === '1') {
|
||||||
|
$newname = strtolower($newname);
|
||||||
|
}
|
||||||
|
|
||||||
$local_query = 'CREATE DATABASE ' . PMA_backquote($newname);
|
$local_query = 'CREATE DATABASE ' . PMA_backquote($newname);
|
||||||
if (isset($db_collation)) {
|
if (isset($db_collation)) {
|
||||||
$local_query .= ' DEFAULT' . PMA_generateCharsetQueryPart($db_collation);
|
$local_query .= ' DEFAULT' . PMA_generateCharsetQueryPart($db_collation);
|
||||||
|
Reference in New Issue
Block a user