Compare commits

...

1 Commits

Author SHA1 Message Date
acsfer f60e7d3f55
Using empty file as ZipArchive is deprecated
Fix #27064
2021-05-22 13:44:24 +02:00
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class ZIP extends Archive {
public function __construct($source) {
$this->path = $source;
$this->zip = new \ZipArchive();
if ($this->zip->open($source, \ZipArchive::CREATE)) {
if ($this->zip->open($source, \ZipArchive::OVERWRITE)) {
} else {
\OCP\Util::writeLog('files_archive', 'Error while opening archive '.$source, ILogger::WARN);
}