[Pkg-owncloud-commits] [owncloud] 105/457: fix calculation of $count, $count is always 8129 so we need to check this against the unencrypted file size

David Prévot taffit at moszumanska.debian.org
Sun Jun 28 20:05:39 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit bf6151e7994d50eeab65a50078d3c6a7c79a47cf
Author: jknockaert <jasper at knockaert.nl>
Date:   Thu May 21 07:51:07 2015 +0200

    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(-)

diff --git a/lib/private/files/stream/encryption.php b/lib/private/files/stream/encryption.php
index 7394b84..dfffad3 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list