Fix: X-Accel-Redirect did not support custom data dir and local mounts

This commit is contained in:
dratini0 2014-12-30 22:07:04 +01:00
parent 59930fcdbf
commit f2075f803f
1 changed files with 1 additions and 1 deletions

View File

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