]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix: X-Accel-Redirect did not support custom data dir and local mounts
authordratini0 <dratini0@gmail.com>
Tue, 30 Dec 2014 21:07:04 +0000 (22:07 +0100)
committerdratini0 <dratini0@gmail.com>
Tue, 30 Dec 2014 21:07:04 +0000 (22:07 +0100)
lib/private/files.php

index 98f3c52d6c6227a0a38c98607137ac69fdf57d39..d42ab3d1852f585d7f1efb8b96f68dfd5c4d567c 100644 (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);
                }
        }