summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordratini0 <dratini0@gmail.com>2014-12-30 22:07:04 +0100
committerdratini0 <dratini0@gmail.com>2014-12-30 22:07:04 +0100
commitf2075f803fc59918cc20071cf174d6b5f81f5eed (patch)
tree390b834a64f9f3d72668e6159b88584f88b4b70e /lib
parent59930fcdbf6d600239f7da5cdfc7c12def4830ea (diff)
downloadnextcloud-server-f2075f803fc59918cc20071cf174d6b5f81f5eed.tar.gz
nextcloud-server-f2075f803fc59918cc20071cf174d6b5f81f5eed.zip
Fix: X-Accel-Redirect did not support custom data dir and local mounts
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files.php b/lib/private/files.php
index 98f3c52d6c6..d42ab3d1852 100644
--- a/lib/private/files.php
+++ b/lib/private/files.php
@@ -182,7 +182,7 @@ class OC_Files {
}
if (isset($_SERVER['MOD_X_ACCEL_REDIRECT_ENABLED'])) {
- $filename = \OC::$WEBROOT . '/data' . \OC\Files\Filesystem::getRoot() . $filename;
+ $filename = \OC\Files\Filesystem::getLocalFile($filename);
header("X-Accel-Redirect: " . $filename);
}
}