summaryrefslogtreecommitdiff
path: root/www/dokuwiki/files/patch-wrong-2388-fix
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2014-05-22 22:33:36 +0000
committerXin LI <delphij@FreeBSD.org>2014-05-22 22:33:36 +0000
commit9a77f083acc539cadbad8201cfbf943d5787bf54 (patch)
tree51bb7786dd519652bd80882f3bc6dec64d1b5881 /www/dokuwiki/files/patch-wrong-2388-fix
parentFix location of .pc files for pkg-config [1]. (diff)
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.
Diffstat (limited to 'www/dokuwiki/files/patch-wrong-2388-fix')
-rw-r--r--www/dokuwiki/files/patch-wrong-2388-fix11
1 files changed, 11 insertions, 0 deletions
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;