From a1b991edb98c92f049045e69d38b873cafdcabd8 Mon Sep 17 00:00:00 2001 From: acsfer Date: Sat, 22 May 2021 13:44:24 +0200 Subject: [PATCH] Using empty file as ZipArchive is deprecated Fix #27064 --- lib/private/Archive/ZIP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Archive/ZIP.php b/lib/private/Archive/ZIP.php index e058d4760218d..f48a6b206c969 100644 --- a/lib/private/Archive/ZIP.php +++ b/lib/private/Archive/ZIP.php @@ -47,7 +47,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); }