From f60e7d3f552972c2f43dbae0acd1cb1c8d7648c7 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 96894bac6e..2840bac70e 100644 --- a/lib/private/Archive/ZIP.php +++ b/lib/private/Archive/ZIP.php @@ -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); }