summaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage/wrapper/encryption.php
diff options
context:
space:
mode:
authorFrank Karlitschek <karlitschek@gmx.de>2016-03-31 20:38:42 +0200
committerFrank Karlitschek <karlitschek@gmx.de>2016-03-31 20:38:42 +0200
commitf5709b511b83ba59cb634437345f42a442b12baa (patch)
tree60c645e0d71eb553a9039c1c5fb63d5a77aaaaaa /lib/private/files/storage/wrapper/encryption.php
parent2bff34be56f0127dee3e61960d7cdc97b5a834f6 (diff)
parent7b9d53b7eaccaffa5f9844f700a9d9eb9cd78591 (diff)
downloadnextcloud-server-f5709b511b83ba59cb634437345f42a442b12baa.tar.gz
nextcloud-server-f5709b511b83ba59cb634437345f42a442b12baa.zip
Merge pull request #23445 from owncloud/enc_small_improvement
small performance improvement: no need to calculate the header size
Diffstat (limited to 'lib/private/files/storage/wrapper/encryption.php')
-rw-r--r--lib/private/files/storage/wrapper/encryption.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/storage/wrapper/encryption.php b/lib/private/files/storage/wrapper/encryption.php
index 4e116babd3f..a0253722c5b 100644
--- a/lib/private/files/storage/wrapper/encryption.php
+++ b/lib/private/files/storage/wrapper/encryption.php
@@ -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;