fix calculation of $count, $count is always 8129 so we need to check this

against the unencrypted file size
This commit is contained in:
jknockaert 2015-05-21 07:51:07 +02:00 committed by Bjoern Schiessle
parent 5a20edac82
commit bf6151e799
1 changed files with 1 additions and 1 deletions

View File

@ -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