summaryrefslogtreecommitdiffstats
path: root/lib/private/files
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2016-03-21 15:47:24 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2016-03-21 15:47:24 +0100
commit7b9d53b7eaccaffa5f9844f700a9d9eb9cd78591 (patch)
tree40792164cce1d20c006ebb95facabb7ac8671bc9 /lib/private/files
parente983bd7db074878d2418bdfcc22daf4689d9ec54 (diff)
downloadnextcloud-server-7b9d53b7eaccaffa5f9844f700a9d9eb9cd78591.tar.gz
nextcloud-server-7b9d53b7eaccaffa5f9844f700a9d9eb9cd78591.zip
no need to calculate the header size, if the first block contain a header we already know the size
Diffstat (limited to 'lib/private/files')
-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 81eea9944f8..ef5d32b4821 100644
--- a/lib/private/files/storage/wrapper/encryption.php
+++ b/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;