]> source.dussan.org Git - nextcloud-server.git/commitdiff
use our own stream copy instead
authorRobin Appelman <icewind@owncloud.com>
Mon, 13 Apr 2015 12:13:21 +0000 (14:13 +0200)
committerRobin Appelman <icewind@owncloud.com>
Mon, 13 Apr 2015 12:13:21 +0000 (14:13 +0200)
lib/private/connector/sabre/file.php

index 6483b5a61e6577b1bce41537eb1c52958bf4f6ea..1e19880857c1e5fcb5b785839c390218a330f352 100644 (file)
@@ -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: