From 7b9d53b7eaccaffa5f9844f700a9d9eb9cd78591 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Mon, 21 Mar 2016 15:47:24 +0100 Subject: no need to calculate the header size, if the first block contain a header we already know the size --- lib/private/files/storage/wrapper/encryption.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/files/storage/wrapper/encryption.php') 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; -- cgit v1.2.3