ports/www/dokuwiki/files/patch-wrong-2388-fix
Xin LI a45e6d9d29 Update to 2018-04-22.
PR:		227733
Submitted by:	Yasuhiro KIMURA <yasu utahime org>
MFH:		2018Q2
2018-04-24 07:54:26 +00:00

11 lines
415 B
Text

--- 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;