Skip to content

Commit

Permalink
bug #4706 Schema export doesn't handle dots in db/table name
Browse files Browse the repository at this point in the history
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj committed Feb 4, 2015
1 parent 62f4802 commit 677da29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ phpMyAdmin - ChangeLog
- bug #4743 Unable to move cursor with keyboard in filter rows box - bug #4743 Unable to move cursor with keyboard in filter rows box
- bug Incorrect link in doc - bug Incorrect link in doc
- bug #4745 Tracking does not handle views properly - bug #4745 Tracking does not handle views properly
- bug #4706 Schema export doesn't handle dots in db/table name


4.3.8.0 (2015-01-24) 4.3.8.0 (2015-01-24)
- bug Undefined constant PMA_DRIZZLE - bug Undefined constant PMA_DRIZZLE
Expand Down
4 changes: 2 additions & 2 deletions libraries/plugins/schema/Export_Relation_Schema.class.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ public function isOffline()
protected function getTablesFromRequest() protected function getTablesFromRequest()
{ {
$tables = array(); $tables = array();
$dbLength = mb_strlen($GLOBALS['db']);
foreach ($_REQUEST['t_h'] as $key => $value) { foreach ($_REQUEST['t_h'] as $key => $value) {
list(, $table) = explode(".", $key); $tables[] = mb_substr($key, $dbLength + 1);
$tables[] = $table;
} }
return $tables; return $tables;
} }
Expand Down

0 comments on commit 677da29

Please sign in to comment.