Permalink
Browse files

Use server name for server dump

  • Loading branch information...
1 parent 88d473a commit 5792eabd9bae362d87a8ee45778aae170e040ca0 @vrana committed Apr 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 5792eab

Please sign in to comment.