aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGravatar scollovati <20740642+scollovati@users.noreply.github.com> 2025-11-02 20:39:41 +0100
committerGravatar GitHub <noreply@github.com> 2025-11-02 20:39:41 +0100
commit04c55fa1b84b75445642de9ec0e2532d10e72dc0 (patch)
treec3877804b2c6977dbe1accf48c7f1d196606dcd6 /app/views
parent500d05f3c5ec3a3dffa7791f7447bc0d31d6f7e0 (diff)
[sqlite export] add username and timestamp (#8169)
* [sqlite export] add username and timestamp add username and timestamp to sqlite user export, similar to the ZIP export. Useful for archiving purposes. * Fix case of backups and other DB types https://github.com/FreshRSS/FreshRSS/pull/8169#issuecomment-3476079108 --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/views')
-rw-r--r--app/views/importExport/sqlite.phtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/importExport/sqlite.phtml b/app/views/importExport/sqlite.phtml
index f1d181a61..7b0a244a3 100644
--- a/app/views/importExport/sqlite.phtml
+++ b/app/views/importExport/sqlite.phtml
@@ -3,7 +3,7 @@ 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('Content-Disposition: attachment; filename="' . $this->sqliteName . '"');
header('Cache-Control: private, no-store, max-age=0');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s \\G\\M\\T', @filemtime($this->sqlitePath) ?: 0));
header('Content-Length: ' . (@filesize($this->sqlitePath) ?: 0));