diff options
author | dratini0 <dratini0@gmail.com> | 2014-12-30 22:07:04 +0100 |
---|---|---|
committer | dratini0 <dratini0@gmail.com> | 2014-12-30 22:07:04 +0100 |
commit | f2075f803fc59918cc20071cf174d6b5f81f5eed (patch) | |
tree | 390b834a64f9f3d72668e6159b88584f88b4b70e /lib | |
parent | 59930fcdbf6d600239f7da5cdfc7c12def4830ea (diff) | |
download | nextcloud-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.php | 2 |
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); } } |