don't close input stream when writing in encrypted file

Signed-off-by: Florian Schunk <florian.schunk@rwth-aachen.de>
This commit is contained in:
Florian Schunk 2019-01-10 00:25:07 +01:00
parent 011aab52ff
commit c2f8df0573
1 changed files with 0 additions and 1 deletions

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;
}