summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjknockaert <jasper@knockaert.nl>2015-05-21 07:51:07 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-05-21 14:15:26 +0200
commitbf6151e7994d50eeab65a50078d3c6a7c79a47cf (patch)
treec2d4f6987a453f2b278002050592836d5254f808 /lib
parent5a20edac8241590e1b21a8ad0abcd9d6af2f5112 (diff)
downloadnextcloud-server-bf6151e7994d50eeab65a50078d3c6a7c79a47cf.tar.gz
nextcloud-server-bf6151e7994d50eeab65a50078d3c6a7c79a47cf.zip
fix calculation of $count, $count is always 8129 so we need to check this
against the unencrypted file size
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/stream/encryption.php2
1 files changed, 1 insertions, 1 deletions
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