Skip to content

Commit

Permalink
Merge pull request #13468 from rummatee/issue13276
Browse files Browse the repository at this point in the history
don't close input stream when writing in encrypted file
  • Loading branch information
MorrisJobke committed Jan 14, 2019
2 parents 86d3083 + c2f8df0 commit c3b22f0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/private/Files/Storage/Wrapper/Encryption.php
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,6 @@ public function writeStream(string $path, $stream, int $size = null): int {
// always fall back to fopen
$target = $this->fopen($path, 'w');
list($count, $result) = \OC_Helper::streamCopy($stream, $target);
fclose($stream);
fclose($target);
return $count;
}
Expand Down

0 comments on commit c3b22f0

Please sign in to comment.