fix calculation of $count, $count is always 8129 so we need to check this
against the unencrypted file size
This commit is contained in:
parent
5a20edac82
commit
bf6151e799
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue