ports/www/dokuwiki/files/patch-wrong-2388-fix
2024-02-09 00:02:25 -08:00

11 lines
418 B
Text

--- inc/httputils.php.orig 2024-02-06 13:03:45 UTC
+++ inc/httputils.php
@@ -78,8 +78,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;