aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-11-18 11:34:40 +0100
committerGravatar GitHub <noreply@github.com> 2018-11-18 11:34:40 +0100
commitf26b8f3f310df60693deab7d977dd5fcc3adaf09 (patch)
tree7db063de9f26afc329c696dc6a987fe961b2415a /app
parent55d7115926df2df45e8bde6e8e6f6e2b9c367024 (diff)
PHP 7.1 tempnam warning fix (#2134)
And suggested dir was wrong. https://bugs.php.net/bug.php?id=69489 ``` <b>Notice</b>: tempnam(): file created in the system's temporary directory in <b>/var/www/html/FreshRSS/app/Controllers/importExportController.php</b> on line <b>800</b><br /> ```
Diffstat (limited to 'app')
-rw-r--r--app/Controllers/importExportController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controllers/importExportController.php b/app/Controllers/importExportController.php
index 9e485dd28..2d8d4e01d 100644
--- a/app/Controllers/importExportController.php
+++ b/app/Controllers/importExportController.php
@@ -797,7 +797,7 @@ class FreshRSS_importExport_Controller extends Minz_ActionController {
}
// From https://stackoverflow.com/questions/1061710/php-zip-files-on-the-fly
- $zip_file = tempnam('tmp', 'zip');
+ $zip_file = @tempnam('/tmp', 'zip');
$zip = new ZipArchive();
$zip->open($zip_file, ZipArchive::OVERWRITE);