Merge pull request #23445 from owncloud/enc_small_improvement

small performance improvement: no need to calculate the header size
This commit is contained in:
Frank Karlitschek 2016-03-31 20:38:42 +02:00
commit f5709b511b
1 changed files with 1 additions and 1 deletions

View File

@ -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;