浏览代码

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年前
父节点
当前提交
61e72d4b0f
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      apps/encryption/lib/Command/FixEncryptedVersion.php

+ 5
- 0
apps/encryption/lib/Command/FixEncryptedVersion.php 查看文件

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

正在加载...
取消
保存