mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-18 05:14:34 -04:00
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 /> ```
This commit is contained in:
committed by
GitHub
parent
55d7115926
commit
f26b8f3f31
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user