Skip to content

A free, self-hostable news aggregator…

Ensure no PHP buffer for SQLite download (#7230)

Alexandre Alapetite2cc5621860d6
diff --git a/app/views/importExport/sqlite.phtml b/app/views/importExport/sqlite.phtml
index 8c9adcab1..fb24e8a92 100644
--- a/app/views/importExport/sqlite.phtml
+++ b/app/views/importExport/sqlite.phtml
@@ -1,6 +1,7 @@
<?php
declare(strict_types=1);
/** @var FreshRSS_View $this */
+@ob_end_clean(); // Ensure no buffer
header('Content-Type: application/vnd.sqlite3');
header('Content-Disposition: attachment; filename="' . basename($this->sqlitePath) . '"');
header('Cache-Control: private, no-store, max-age=0');