From: dratini0 Date: Tue, 30 Dec 2014 21:07:04 +0000 (+0100) Subject: Fix: X-Accel-Redirect did not support custom data dir and local mounts X-Git-Tag: v8.0.0alpha2~58^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f2075f803fc59918cc20071cf174d6b5f81f5eed;p=nextcloud-server.git Fix: X-Accel-Redirect did not support custom data dir and local mounts --- 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); } }