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

Export: Use output buffering

This commit is contained in:
Jakub Vrana
2025-03-24 17:28:53 +01:00
parent dcde78eef2
commit 1cf5a91d98

View File

@@ -761,6 +761,9 @@ function dump_headers($identifier, $multi_table = false) {
header("Content-Disposition: attachment; filename=" . $adminer->dumpFilename($identifier) . ".$return" . ($output != "file" && preg_match('~^[0-9a-z]+$~', $output) ? ".$output" : ""));
}
session_write_close();
if (!ob_get_level()) {
ob_start(null, 4096);
}
ob_flush();
flush();
return $return;