Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use server name for server dump

  • Loading branch information...
commit 5792eabd9bae362d87a8ee45778aae170e040ca0 1 parent 88d473a
@vrana authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  adminer/include/functions.inc.php
View
2  adminer/include/functions.inc.php
@@ -775,7 +775,7 @@ function dump_headers($identifier, $multi_table = false) {
$return = $adminer->dumpHeaders($identifier, $multi_table);
$output = $_POST["output"];
if ($output != "text") {
- header("Content-Disposition: attachment; filename=" . ($identifier != "" ? friendly_url($identifier) : "dump") . ".$return" . ($output != "file" && !ereg('[^0-9a-z]', $output) ? ".$output" : ""));
+ header("Content-Disposition: attachment; filename=" . friendly_url($identifier != "" ? $identifier : (SERVER != "" ? SERVER : "localhost")) . ".$return" . ($output != "file" && !ereg('[^0-9a-z]', $output) ? ".$output" : ""));
}
session_write_close();
return $return;
Please sign in to comment.
Something went wrong with that request. Please try again.