Merge pull request #13468 from rummatee/issue13276

don't close input stream when writing in encrypted file
This commit is contained in:
Morris Jobke 2019-01-14 16:21:08 +01:00 committed by GitHub
commit c3b22f05bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1033,7 +1033,6 @@ class Encryption extends Wrapper {
// always fall back to fopen
$target = $this->fopen($path, 'w');
list($count, $result) = \OC_Helper::streamCopy($stream, $target);
fclose($stream);
fclose($target);
return $count;
}