ZIP tempnam (#6392)

fix https://github.com/FreshRSS/FreshRSS/issues/6388
This commit is contained in:
Alexandre Alapetite 2024-04-27 22:44:33 +02:00 committed by GitHub
parent 5ca0b893b9
commit 173555795a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ class FreshRSS_Export_Service {
$zip_filename = 'freshrss_' . $this->username . '_' . $day . '_export.zip';
// From https://stackoverflow.com/questions/1061710/php-zip-files-on-the-fly
$zip_file = tempnam('/tmp', 'zip');
$zip_file = tempnam(TMP_PATH, 'zip');
if ($zip_file == false) {
return [$zip_filename, false];
}