From bf6151e7994d50eeab65a50078d3c6a7c79a47cf Mon Sep 17 00:00:00 2001 From: jknockaert Date: Thu, 21 May 2015 07:51:07 +0200 Subject: fix calculation of $count, $count is always 8129 so we need to check this against the unencrypted file size --- lib/private/files/stream/encryption.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/files') diff --git a/lib/private/files/stream/encryption.php b/lib/private/files/stream/encryption.php index 7394b84a5d3..dfffad3450a 100644 --- a/lib/private/files/stream/encryption.php +++ b/lib/private/files/stream/encryption.php @@ -273,7 +273,7 @@ class Encryption extends Wrapper { $result = ''; -// $count = min($count, $this->unencryptedSize - $this->position); + $count = min($count, $this->unencryptedSize - $this->position); while ($count > 0) { $remainingLength = $count; // update the cache of the current block -- cgit v1.2.3