]> source.dussan.org Git - nextcloud-server.git/commitdiff
use readfile() instead iof fopen() for file download over webdav.
authorBjoern Schiessle <schiessle@owncloud.com>
Tue, 10 Jul 2012 14:41:20 +0000 (16:41 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Wed, 11 Jul 2012 10:04:20 +0000 (12:04 +0200)
fopen() didn't work for large files on some servers while readfile()
seems to work for all files on all configurations.

lib/connector/sabre/file.php

index 3ba1b3355f28266953ea4aea7e9d7ffac994ae5b..e177946aa422c5982121f81bce48e784f11094fd 100644 (file)
@@ -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);
 
        }