Pārlūkot izejas kodu

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 pirms 1 gada
vecāks
revīzija
61e72d4b0f
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5
    0
      apps/encryption/lib/Command/FixEncryptedVersion.php

+ 5
- 0
apps/encryption/lib/Command/FixEncryptedVersion.php Parādīt failu

@@ -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) {

Notiek ielāde…
Atcelt
Saglabāt