Commit c9ccacb9 authored by Vincent Petry's avatar Vincent Petry
Browse files

Merge pull request #7902 from owncloud/ext-xsendfileextstoragefix

Use the correct resolve method to resolve file storage (x-sendfile)
parents ed0cba0f b48510c9
......@@ -148,8 +148,9 @@ class OC_Files {
set_time_limit($executionTime);
} else {
if ($xsendfile) {
$view = \OC\Files\Filesystem::getView();
/** @var $storage \OC\Files\Storage\Storage */
list($storage) = \OC\Files\Filesystem::resolvePath($filename);
list($storage) = $view->resolvePath($filename);
if ($storage->isLocal()) {
self::addSendfileHeader(\OC\Files\Filesystem::getLocalFile($filename));
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment