summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordratini0 <dratini0@gmail.com>2015-03-23 17:51:12 +0100
committerdratini0 <dratini0@gmail.com>2015-03-23 17:51:12 +0100
commitd4e5ef4f38a0b3c48537bc7e27a14563e76b6391 (patch)
tree6467c1e206230d9f06e0aa1adf2db3ba915b6920 /lib
parentc432b52c748479b08a4b80678e3bec1f387ecf76 (diff)
downloadnextcloud-server-d4e5ef4f38a0b3c48537bc7e27a14563e76b6391.tar.gz
nextcloud-server-d4e5ef4f38a0b3c48537bc7e27a14563e76b6391.zip
Removed simplified X-accel-redirect even further
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/private/files.php b/lib/private/files.php
index 6d165bcc705..b7df99c7d70 100644
--- a/lib/private/files.php
+++ b/lib/private/files.php
@@ -183,12 +183,7 @@ class OC_Files {
if (isset($_SERVER['MOD_X_ACCEL_REDIRECT_ENABLED'])) {
if (isset($_SERVER['MOD_X_ACCEL_REDIRECT_PREFIX'])) {
- $prefix = $_SERVER['MOD_X_ACCEL_REDIRECT_PREFIX'];
- // nginx is picky about double slashes when matching locations
- if($prefix[strlen($prefix) - 1] === '/'){
- $prefix = substr($prefix, 0, -1);
- }
- $filename = $prefix . \OC\Files\Filesystem::getLocalFile($filename);
+ $filename = $_SERVER['MOD_X_ACCEL_REDIRECT_PREFIX'] . \OC\Files\Filesystem::getLocalFile($filename);
} else {
$filename = \OC::$WEBROOT . '/data' . \OC\Files\Filesystem::getRoot() . $filename;
}