Skip to content

Commit

Permalink
Using empty file as ZipArchive is deprecated
Browse files Browse the repository at this point in the history
Fix #27064
  • Loading branch information
solracsf authored and szaimen committed Jan 22, 2022
1 parent 03c09cd commit a1b991e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Archive/ZIP.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a1b991e

Please sign in to comment.