summaryrefslogtreecommitdiffstats
path: root/lib/filesystemview.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-05-05 16:49:22 +0200
committerRobin Appelman <icewind@owncloud.com>2012-05-05 16:49:48 +0200
commitc0e67fa24adfa356dccdb35fad29879c39b69cb7 (patch)
tree553e1dc59dba8d168d2dbc66e8f4f1e2a85a5e1e /lib/filesystemview.php
parent70cb053e6b03e2848cb54aea72c3f8e550ece69d (diff)
downloadnextcloud-server-c0e67fa24adfa356dccdb35fad29879c39b69cb7.tar.gz
nextcloud-server-c0e67fa24adfa356dccdb35fad29879c39b69cb7.zip
fix opening encrypted files from the browser
Diffstat (limited to 'lib/filesystemview.php')
-rw-r--r--lib/filesystemview.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/filesystemview.php b/lib/filesystemview.php
index ac5a0a3bff5..b62bb82c699 100644
--- a/lib/filesystemview.php
+++ b/lib/filesystemview.php
@@ -137,9 +137,9 @@ class OC_FilesystemView {
}
public function readfile($path){
@ob_end_clean();
- $handle=$this->fopen($path,'r');
+ $handle=$this->fopen($path,'rb');
if ($handle) {
- $chunkSize = 8*1024;// 1 MB chunks
+ $chunkSize = 8192;// 8 MB chunks
while (!feof($handle)) {
echo fread($handle, $chunkSize);
flush();