mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
no need to calculate the header size, if the first block contain a header we already know the size
This commit is contained in:
parent
e983bd7db0
commit
7b9d53b7ea
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue