From c2f8df05738797a40e7f73dcfdb34e639e074d94 Mon Sep 17 00:00:00 2001 From: Florian Schunk Date: Thu, 10 Jan 2019 00:25:07 +0100 Subject: don't close input stream when writing in encrypted file Signed-off-by: Florian Schunk --- lib/private/Files/Storage/Wrapper/Encryption.php | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/private/Files/Storage/Wrapper/Encryption.php') diff --git a/lib/private/Files/Storage/Wrapper/Encryption.php b/lib/private/Files/Storage/Wrapper/Encryption.php index e1c1225e0cc..5485b80985b 100644 --- a/lib/private/Files/Storage/Wrapper/Encryption.php +++ b/lib/private/Files/Storage/Wrapper/Encryption.php @@ -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; } -- cgit v1.2.3