Selaa lähdekoodia

Merge pull request #35337 from nextcloud/fix-encrypted-version-fopen-error

skip files that cant be opened for FixEncryptedVersion
tags/v26.0.0beta1
Robin Appelman 1 vuosi sitten
vanhempi
commit
61e72d4b0f
No account linked to committer's email address
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5
    0
      apps/encryption/lib/Command/FixEncryptedVersion.php

+ 5
- 0
apps/encryption/lib/Command/FixEncryptedVersion.php Näytä tiedosto

@@ -174,6 +174,11 @@ class FixEncryptedVersion extends Command {
*/
$handle = $this->view->fopen($path, 'rb');

if ($handle === false) {
$output->writeln("<warning>Failed to open file: \"$path\" skipping</warning>");
return true;
}

if (\fread($handle, 9001) !== false) {
$fileInfo = $this->view->getFileInfo($path);
if (!$fileInfo) {

Loading…
Peruuta
Tallenna