Преглед изворни кода

ZIP tempnam (#6392)

fix https://github.com/FreshRSS/FreshRSS/issues/6388
Alexandre Alapetite пре 2 година
родитељ
комит
173555795a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Services/ExportService.php

+ 1 - 1
app/Services/ExportService.php

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