summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-04-13 14:13:21 +0200
committerRobin Appelman <icewind@owncloud.com>2015-04-13 14:13:21 +0200
commitdcfe014103368eba463234f5369c1edbfe7a1968 (patch)
treec29370359a35b1553fdc1d284dddc78cb7fad0d8
parentcbcee34eb04a9b950437f50607d8fe1b88af703a (diff)
downloadnextcloud-server-dcfe014103368eba463234f5369c1edbfe7a1968.tar.gz
nextcloud-server-dcfe014103368eba463234f5369c1edbfe7a1968.zip
use our own stream copy instead
-rw-r--r--lib/private/connector/sabre/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/connector/sabre/file.php b/lib/private/connector/sabre/file.php
index 6483b5a61e6..1e19880857c 100644
--- a/lib/private/connector/sabre/file.php
+++ b/lib/private/connector/sabre/file.php
@@ -126,7 +126,7 @@ class File extends Node implements IFile {
// because we have no clue about the cause we can only throw back a 500/Internal Server Error
throw new Exception('Could not write file contents');
}
- $count = stream_copy_to_stream($data, $target);
+ list($count, ) = \OC_Helper::streamCopy($data, $target);
fclose($target);
// if content length is sent by client: