aboutsummaryrefslogtreecommitdiff
path: root/app/Services/ExportService.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-04-27 22:44:33 +0200
committerGravatar GitHub <noreply@github.com> 2024-04-27 22:44:33 +0200
commit173555795adf6614dff33893b373f22542910675 (patch)
tree9acc08146e3d49ae61b11aeaed10b33cf7dcaa2b /app/Services/ExportService.php
parent5ca0b893b987c2b251666adc09f1d188fc3b0017 (diff)
ZIP tempnam (#6392)
fix https://github.com/FreshRSS/FreshRSS/issues/6388
Diffstat (limited to 'app/Services/ExportService.php')
-rw-r--r--app/Services/ExportService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Services/ExportService.php b/app/Services/ExportService.php
index e57359906..91c8c91e3 100644
--- a/app/Services/ExportService.php
+++ b/app/Services/ExportService.php
@@ -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];
}