aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-10-25 12:33:16 +0200
committerVincent Petry <pvince81@owncloud.com>2013-10-25 12:33:16 +0200
commitc8df27de73f845f6d1661386f06304b7c209e7d7 (patch)
treed98ad6e5c6e7305a3a1cd21eaf0285b4a7155d23 /lib/private/files/storage
parentd8b245490bf0e74156c66ca594977cbdb2920c4e (diff)
downloadnextcloud-server-c8df27de73f845f6d1661386f06304b7c209e7d7.tar.gz
nextcloud-server-c8df27de73f845f6d1661386f06304b7c209e7d7.zip
Fixed quota stream to not wrap read-only fopen calls
Diffstat (limited to 'lib/private/files/storage')
-rw-r--r--lib/private/files/storage/wrapper/quota.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/storage/wrapper/quota.php b/lib/private/files/storage/wrapper/quota.php
index e2da8cf2e05..43016e0892f 100644
--- a/lib/private/files/storage/wrapper/quota.php
+++ b/lib/private/files/storage/wrapper/quota.php
@@ -95,7 +95,7 @@ class Quota extends Wrapper {
public function fopen($path, $mode) {
$source = $this->storage->fopen($path, $mode);
$free = $this->free_space('');
- if ($free >= 0) {
+ if ($free >= 0 && $mode !== 'r') {
return \OC\Files\Stream\Quota::wrap($source, $free);
} else {
return $source;