Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-12-28 01:53:32 +0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-12-28 01:53:32 +0400
commitb03562670973fd924a042064644994639a59667d (patch)
treea706ecb2969aa7cda1773c57ae1f063f739b78e8 /lib/files.php
parent65f1e521079968a4450468917649b241b0fb6b24 (diff)
Retrieve storage correctly, filename is not the mountpoint
Diffstat (limited to 'lib/files.php')
-rw-r--r--lib/files.php2
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));
}