From 9a77f083acc539cadbad8201cfbf943d5787bf54 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Thu, 22 May 2014 22:33:36 +0000 Subject: Revert upstream changeset 446b5b5 as it would break the case when dokuwiki is properly configured to split out savedir from the wiki itself and when Nginx's X-Accel-Redirect header is being used. --- www/dokuwiki/files/patch-wrong-2388-fix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 www/dokuwiki/files/patch-wrong-2388-fix (limited to 'www/dokuwiki/files/patch-wrong-2388-fix') diff --git a/www/dokuwiki/files/patch-wrong-2388-fix b/www/dokuwiki/files/patch-wrong-2388-fix new file mode 100644 index 000000000000..b3c076040658 --- /dev/null +++ b/www/dokuwiki/files/patch-wrong-2388-fix @@ -0,0 +1,11 @@ +--- ./inc/httputils.php.orig 2014-05-05 13:53:23.000000000 -0700 ++++ ./inc/httputils.php 2014-05-22 15:24:54.000000000 -0700 +@@ -80,8 +80,6 @@ + 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; -- cgit v1.2.3