From 61d40ec5684b1e9d0c8ce9d983563694d7fc77ad Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Tue, 1 Sep 2009 13:05:50 +0000 Subject: [PATCH] Unlock session in dump git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1053 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- adminer/include/export.inc.php | 1 + editor/include/export.inc.php | 1 + 2 files changed, 2 insertions(+) diff --git a/adminer/include/export.inc.php b/adminer/include/export.inc.php index a1515c97..6f2d68d4 100644 --- a/adminer/include/export.inc.php +++ b/adminer/include/export.inc.php @@ -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; } diff --git a/editor/include/export.inc.php b/editor/include/export.inc.php index 3c92fce9..319410a5 100644 --- a/editor/include/export.inc.php +++ b/editor/include/export.inc.php @@ -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; }