[Pkg-owncloud-commits] [owncloud] 94/145: Fix xsendfile local storage detection with quota

David Prévot taffit at moszumanska.debian.org
Wed Feb 26 16:27:45 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit b4f04c18dbcae4ad689d1bac85d53643347ca296
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Tue Feb 11 15:04:17 2014 +0100

    Fix xsendfile local storage detection with quota
---
 lib/private/files.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/private/files.php b/lib/private/files.php
index 8ce6320..0ec051c 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));
 					}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list