summaryrefslogtreecommitdiff
path: root/www/dokuwiki/files/patch-wrong-2388-fix
blob: 248527ef58521f1ebb0987f962a509c4cde83b1a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- inc/httputils.php.orig	2018-04-22 11:17:57 UTC
+++ inc/httputils.php
@@ -82,8 +82,6 @@ function http_sendfile($file) {
         ob_end_clean();
         exit;
     }elseif($conf['xsendfile'] == 3){
-        // FS#2388 nginx just needs the relative path.
-        $file = DOKU_REL.substr($file, strlen(fullpath(DOKU_INC)) + 1);
         header("X-Accel-Redirect: $file");
         ob_end_clean();
         exit;