Revert "Fix: X-Accel-Redirect did not support custom data dir and local mounts"
This reverts commit f2075f803f
.
This commit is contained in:
parent
80032ec301
commit
b1594ad1df
|
@ -182,7 +182,7 @@ class OC_Files {
|
|||
}
|
||||
|
||||
if (isset($_SERVER['MOD_X_ACCEL_REDIRECT_ENABLED'])) {
|
||||
$filename = \OC\Files\Filesystem::getLocalFile($filename);
|
||||
$filename = \OC::$WEBROOT . '/data' . \OC\Files\Filesystem::getRoot() . $filename;
|
||||
header("X-Accel-Redirect: " . $filename);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue