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-10 19:22:06 +0200
commite7a0c4f0bb73cb6540678e8174c448fdaf5c299d (patch)
treee5c4d2c7084082d1dc48ccfb555d770e5f3ac21b /lib/connector
parentbf09bcc8542cae436a3d712032ae51725f3d929c (diff)
downloadnextcloud-server-e7a0c4f0bb73cb6540678e8174c448fdaf5c299d.tar.gz
nextcloud-server-e7a0c4f0bb73cb6540678e8174c448fdaf5c299d.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 dd25df78c29..e4dc8c93445 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);
}