diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-02-11 18:04:17 +0400 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-02-11 18:04:17 +0400 |
commit | b4f04c18dbcae4ad689d1bac85d53643347ca296 (patch) | |
tree | 649719bcbbdf90d734ca7bed0dd943504858eea8 | |
parent | 018fed60142dd1e0edce7f16e9dc0ac0fa87b2ed (diff) |
Fix xsendfile local storage detection with quota
-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)); } |