浏览代码

no need to calculate the header size, if the first block contain a header we already know the size

tags/v9.1.0beta1
Bjoern Schiessle 8 年前
父节点
当前提交
7b9d53b7ea
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      lib/private/files/storage/wrapper/encryption.php

+ 1
- 1
lib/private/files/storage/wrapper/encryption.php 查看文件

@@ -841,7 +841,7 @@ class Encryption extends Wrapper {
$firstBlock = $this->readFirstBlock($path);

if (substr($firstBlock, 0, strlen(Util::HEADER_START)) === Util::HEADER_START) {
$headerSize = strlen($firstBlock);
$headerSize = $this->util->getHeaderSize();
}

return $headerSize;

正在加载...
取消
保存