]> git.joonet.de Git - adminer.git/commitdiff
Export: Use output buffering
authorJakub Vrana <jakub@vrana.cz>
Mon, 24 Mar 2025 16:28:53 +0000 (17:28 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 24 Mar 2025 16:28:53 +0000 (17:28 +0100)
adminer/include/functions.inc.php

index 0ebf9cc5b98dcd32c7d4ee65c80e8867dbcd5ed9..26dd449da537f2253980fb6241664cf2a7501497 100644 (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;