diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2016-03-21 15:47:24 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2016-03-21 15:47:24 +0100 |
commit | 7b9d53b7eaccaffa5f9844f700a9d9eb9cd78591 (patch) | |
tree | 40792164cce1d20c006ebb95facabb7ac8671bc9 /lib/private/files | |
parent | e983bd7db074878d2418bdfcc22daf4689d9ec54 (diff) | |
download | nextcloud-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.php | 2 |
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; |