diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-02-11 17:03:55 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-02-11 17:03:55 +0100 |
commit | ad813da7b1336a0f5426e2defe0d790bb96b9d58 (patch) | |
tree | fcf96dd08cb5990532b460f71bdceb2411e22956 /lib | |
parent | 23985428eaf832c3013643a2952e108d6b0a512c (diff) | |
parent | b4f04c18dbcae4ad689d1bac85d53643347ca296 (diff) | |
download | nextcloud-server-ad813da7b1336a0f5426e2defe0d790bb96b9d58.tar.gz nextcloud-server-ad813da7b1336a0f5426e2defe0d790bb96b9d58.zip |
Merge pull request #7157 from owncloud/stable6-xsendfilequotacheck
Fix xsendfile local storage detection with quota
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/files.php b/lib/private/files.php index 8ce632013cf..0ec051cbfa5 100644 --- a/lib/private/files.php +++ b/lib/private/files.php @@ -131,6 +131,9 @@ class OC_Files { } if ($xsendfile) { list($storage) = \OC\Files\Filesystem::resolvePath(\OC\Files\Filesystem::getView()->getAbsolutePath($filename)); + if ($storage instanceof \OC\Files\Storage\Wrapper\Wrapper) { + $storage = $storage->getWrapperStorage(); + } if ($storage instanceof \OC\Files\Storage\Local) { self::addSendfileHeader(\OC\Files\Filesystem::getLocalFile($filename)); } |