Merge pull request #23445 from owncloud/enc_small_improvement
small performance improvement: no need to calculate the header size
This commit is contained in:
commit
f5709b511b
|
@ -865,7 +865,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 New Issue