1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 17:44:07 +02:00

Unlock session in dump

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1053 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-09-01 13:05:50 +00:00
parent 9a176b0ca3
commit 61d40ec568
2 changed files with 2 additions and 0 deletions

View File

@@ -153,6 +153,7 @@ function dump_headers($identifier, $multi_table = false) {
if ($_POST["output"] == "file" || $compress) {
header("Content-Disposition: attachment; filename=$filename.$ext" . (ereg('[0-9a-z]', $compress) ? ".$compress" : ""));
}
session_write_close();
return $ext;
}

View File

@@ -18,6 +18,7 @@ function dump_headers($identifier) {
$ext = "csv";
header("Content-Type: text/csv; charset=utf-8");
header("Content-Disposition: attachment; filename=$filename.$ext");
session_write_close();
return $ext;
}