A free, self-hostable news aggregator…
@tempnam in ExportService.php #4304 (#4489)
harshad3899ef849eb2707
diff --git a/CREDITS.md b/CREDITS.mdindex 10c18d000..bcf065c81 100644--- a/CREDITS.md+++ b/CREDITS.md@@ -61,6 +61,7 @@ People are sorted by name so please keep this order.* [Guillaume Hayot](https://github.com/postblue): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:postblue), [Web](https://postblue.info/)* [Guillaume Pugnet](https://github.com/GuillaumePugnet): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:GuillaumePugnet)* [happymacarts](https://github.com/happymacarts): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:happymacarts)+* [Harshad Hirapara](https://github.com/harshad389): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:harshad389)* [hesch](https://github.com/hesch): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:hesch)* [hoilc](https://github.com/hoilc): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:hoilc)* [ibiruai](https://github.com/ibiruai): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:ibiruai)@@ -176,3 +177,4 @@ People are sorted by name so please keep this order.* [xnaas](https://github.com/xnaas): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:xnaas), [Web](https://xnaas.info/)* [Yamakuni](https://github.com/Yamakuni): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:Yamakuni), [Web](https://ofanch.me/)* [yzqzss|一座桥在水上](https://github.com/yzqzss): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:yzqzss), [Web](https://blog.othing.xyz/)+diff --git a/app/Services/ExportService.php b/app/Services/ExportService.phpindex eb1ec3f84..b5630f57f 100644--- a/app/Services/ExportService.php+++ b/app/Services/ExportService.php@@ -165,7 +165,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', 'zip');$zip_archive = new ZipArchive();$zip_archive->open($zip_file, ZipArchive::OVERWRITE);