diff options
author | Florian Vichot <florian.vichot@gmail.com> | 2011-11-06 16:43:00 +0100 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-11-06 22:39:24 +0100 |
commit | 452a4637647d6dbd54b275aead765d3a2329813e (patch) | |
tree | 3db4a2eb8c7c64330fbc99027a87850375d994cc /lib/connector/sabre/file.php | |
parent | 97291fda5829fd56a22e39b6a62681aaa239bef5 (diff) | |
download | nextcloud-server-452a4637647d6dbd54b275aead765d3a2329813e.tar.gz nextcloud-server-452a4637647d6dbd54b275aead765d3a2329813e.zip |
Make OC_Connector_Sabre_File::get() return a PHP stream instead of the file content, as is recommended by SabreDAV to handle large files.
Diffstat (limited to 'lib/connector/sabre/file.php')
-rw-r--r-- | lib/connector/sabre/file.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connector/sabre/file.php b/lib/connector/sabre/file.php index b049f39c171..98661dbb184 100644 --- a/lib/connector/sabre/file.php +++ b/lib/connector/sabre/file.php @@ -29,7 +29,7 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D */ public function get() { - return OC_Filesystem::file_get_contents($this->path); + return OC_Filesystem::fopen($this->path,'r'); } |