Respect checked tables in export filename (bug #3245464)

This commit is contained in:
Jakub Vrana 2013-04-16 10:37:10 -07:00
parent e8e95e5fd7
commit 37adf537c9
2 changed files with 5 additions and 1 deletions

View file

@ -7,7 +7,10 @@ if ($_POST) {
$cookie .= "&$key=" . urlencode($_POST[$key]);
}
cookie("adminer_export", substr($cookie, 1));
$ext = dump_headers(($TABLE != "" ? $TABLE : DB), (DB == "" || count((array) $_POST["tables"] + (array) $_POST["data"]) > 1));
$tables = array_flip((array) $_POST["tables"]) + array_flip((array) $_POST["data"]);
$ext = dump_headers(
(count($tables) == 1 ? key($tables) : DB),
(DB == "" || count($tables) > 1));
$is_sql = ereg('sql', $_POST["format"]);
if ($is_sql) {
echo "-- Adminer $VERSION " . $drivers[DRIVER] . " dump

View file

@ -8,6 +8,7 @@ Clear column name after resetting search (bug #3601200)
Explain partitions in SQL query (bug #3600150)
Allow loading more data with inline edit (bug #3605531)
Stay on the same page after deleting rows (bug #3605845)
Respect checked tables in export filename (bug #3245464)
Handle max_input_vars
Open database to a new window after selecting it with Ctrl
Disable autocapitalize in identifiers on mobile browsers