From c6a48110bfbf5b3f100b0f2fc092e806e079e34e Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 31 Oct 2018 16:16:37 +0100 Subject: allways fall back to fopen for encryption wrapper Signed-off-by: Robin Appelman --- lib/private/Files/Storage/Wrapper/Encryption.php | 9 +++++++++ 1 file changed, 9 insertions(+) (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 42653b2d4a6..e1c1225e0cc 100644 --- a/lib/private/Files/Storage/Wrapper/Encryption.php +++ b/lib/private/Files/Storage/Wrapper/Encryption.php @@ -1029,4 +1029,13 @@ class Encryption extends Wrapper { } + 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; + } + } -- cgit v1.2.3