From 7b9d53b7eaccaffa5f9844f700a9d9eb9cd78591 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Mon, 21 Mar 2016 15:47:24 +0100 Subject: [PATCH] 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(-) diff --git a/lib/private/files/storage/wrapper/encryption.php b/lib/private/files/storage/wrapper/encryption.php index 81eea9944f..ef5d32b482 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;