summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage/Wrapper/Encryption.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-10-31 16:16:37 +0100
committerRobin Appelman <robin@icewind.nl>2018-10-31 21:10:51 +0100
commitc6a48110bfbf5b3f100b0f2fc092e806e079e34e (patch)
tree1c716906f2a95a3a6959370eea639d1884d23962 /lib/private/Files/Storage/Wrapper/Encryption.php
parent3477517cb78bd84836c011e14dd50d3fe82a31ab (diff)
downloadnextcloud-server-c6a48110bfbf5b3f100b0f2fc092e806e079e34e.tar.gz
nextcloud-server-c6a48110bfbf5b3f100b0f2fc092e806e079e34e.zip
allways fall back to fopen for encryption wrapper
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Storage/Wrapper/Encryption.php')
-rw-r--r--lib/private/Files/Storage/Wrapper/Encryption.php9
1 files changed, 9 insertions, 0 deletions
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;
+ }
+
}