Skip to content

Commit

Permalink
Fixed issue: ComfortUpdate not working when one of the files to back …
Browse files Browse the repository at this point in the history
…up has 0 size
  • Loading branch information
c-schmitz committed Aug 11, 2021
1 parent bb73ab5 commit aa37aa8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/config/updater_version.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

// THIS FILE SHOULD NOT BE CHANGED MANUALLY !

$config['updaterversion'] = 9;
$config['updaterversion'] = 10;
$config['comfort_update_server_url'] = 'comfortupdate.limesurvey.org/';
//$config['comfort_update_server_url'] = 'web.comfortupdate.org/';
$config['comfort_update_server_ssl'] = 0;
Expand Down
4 changes: 2 additions & 2 deletions application/models/UpdateForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@ public function backupFiles($updateinfos)
// To block the access to subdirectories
$sFileToZip = str_replace("..", "", $file['file']);

if (is_file($this->publicdir . $sFileToZip) === true && basename($sFileToZip) != 'config.php') {
$filestozip[] = $this->publicdir . $sFileToZip;
if (is_file($this->publicdir.$sFileToZip) === true && basename($sFileToZip) != 'config.php' && filesize($this->publicdir.$sFileToZip) > 0 ) {
$filestozip[] = $this->publicdir.$sFileToZip;
}
}

Expand Down

0 comments on commit aa37aa8

Please sign in to comment.