Retrieve storage correctly, filename is not the mountpoint

This commit is contained in:
Michael Gapczynski 2012-12-27 16:53:32 -05:00
parent 65f1e52107
commit b035626709
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}