mirror of
https://github.com/vrana/adminer.git
synced 2025-08-14 10:34:01 +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:
@@ -153,6 +153,7 @@ function dump_headers($identifier, $multi_table = false) {
|
|||||||
if ($_POST["output"] == "file" || $compress) {
|
if ($_POST["output"] == "file" || $compress) {
|
||||||
header("Content-Disposition: attachment; filename=$filename.$ext" . (ereg('[0-9a-z]', $compress) ? ".$compress" : ""));
|
header("Content-Disposition: attachment; filename=$filename.$ext" . (ereg('[0-9a-z]', $compress) ? ".$compress" : ""));
|
||||||
}
|
}
|
||||||
|
session_write_close();
|
||||||
return $ext;
|
return $ext;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -18,6 +18,7 @@ function dump_headers($identifier) {
|
|||||||
$ext = "csv";
|
$ext = "csv";
|
||||||
header("Content-Type: text/csv; charset=utf-8");
|
header("Content-Type: text/csv; charset=utf-8");
|
||||||
header("Content-Disposition: attachment; filename=$filename.$ext");
|
header("Content-Disposition: attachment; filename=$filename.$ext");
|
||||||
|
session_write_close();
|
||||||
return $ext;
|
return $ext;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user