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

remotes/origin/share-copy-source-mounts^2
Bjoern Schiessle 10 years ago
parent e983bd7db0
commit 7b9d53b7ea
  1. 2
      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;

Loading…
Cancel
Save