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

against the unencrypted file size
remotes/origin/poc-doctrine-migrations
jknockaert 11 years ago committed by Bjoern Schiessle
parent 5a20edac82
commit bf6151e799
  1. 2
      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

Loading…
Cancel
Save