Skip to content
Permalink
Browse files
[core:loader] do urlencode for URI of X-Sendfile's param
  • Loading branch information
nao-pon committed Apr 1, 2014
1 parent 0fd3ac1 commit 3e2607b463f96bed6623c24d54baaa036f3b06a8
Showing with 2 additions and 2 deletions.
  1. +2 −2 xoops_trust_path/modules/xpwiki/loader.php
@@ -588,10 +588,10 @@ function loader_readfile($file, $use_content_encoding = FALSE) {
if ( $use_content_encoding && HYP_X_SENDFILE_MODE === 3) {
header('X-Sendfile-Use-CE: Yes');
}
header('X-Sendfile: ' . $file);
header('X-Sendfile: ' . str_replace('%2F', '/', rawurlencode($file)));
return;
} else if (HYP_X_SENDFILE_MODE === 1) {
header('X-LIGHTTPD-send-file: ' . $file);
header('X-LIGHTTPD-send-file: ' . str_replace('%2F', '/', rawurlencode($file)));
return;
}
}

0 comments on commit 3e2607b

Please sign in to comment.