diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-12-27 16:53:32 -0500 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-12-27 16:53:32 -0500 |
commit | b03562670973fd924a042064644994639a59667d (patch) | |
tree | a706ecb2969aa7cda1773c57ae1f063f739b78e8 /lib/files.php | |
parent | 65f1e521079968a4450468917649b241b0fb6b24 (diff) | |
download | nextcloud-server-b03562670973fd924a042064644994639a59667d.tar.gz nextcloud-server-b03562670973fd924a042064644994639a59667d.zip |
Retrieve storage correctly, filename is not the mountpoint
Diffstat (limited to 'lib/files.php')
-rw-r--r-- | lib/files.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/files.php b/lib/files.php index 15bfbc3fc29..e1a31c6f033 100644 --- a/lib/files.php +++ b/lib/files.php @@ -117,7 +117,7 @@ class OC_Files { }else{ header('Content-Type: '.\OC\Files\Filesystem::getMimeType($filename)); header("Content-Length: ".\OC\Files\Filesystem::filesize($filename)); - $storage = \OC\Files\Filesystem::getStorage($filename); + list($storage) = \OC\Files\Filesystem::resolvePath($filename); if ($storage instanceof \OC\File\Storage\Local) { self::addSendfileHeader(\OC\Files\Filesystem::getLocalFile($filename)); } |