summaryrefslogtreecommitdiffstats
path: root/lib/connector
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-07-10 16:41:20 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-07-11 12:04:20 +0200
commit9af74a9c80c074589f2d5efc365b3a9dee3031ed (patch)
tree93a38910f808584911bea466b6dc247c331489dd /lib/connector
parentb470869114f7b6d7550fd8a32f82ea4fb6e361e7 (diff)
downloadnextcloud-server-9af74a9c80c074589f2d5efc365b3a9dee3031ed.tar.gz
nextcloud-server-9af74a9c80c074589f2d5efc365b3a9dee3031ed.zip
use readfile() instead iof fopen() for file download over webdav.
fopen() didn't work for large files on some servers while readfile() seems to work for all files on all configurations.
Diffstat (limited to 'lib/connector')
-rw-r--r--lib/connector/sabre/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connector/sabre/file.php b/lib/connector/sabre/file.php
index 3ba1b3355f2..e177946aa42 100644
--- a/lib/connector/sabre/file.php
+++ b/lib/connector/sabre/file.php
@@ -42,7 +42,7 @@ class OC_Connector_Sabre_File extends OC_Connector_Sabre_Node implements Sabre_D
*/
public function get() {
- return OC_Filesystem::fopen($this->path,'r');
+ return OC_Filesystem::readfile($this->path);
}