Merge branch 'MDL-83501-url-encode-nginx-paths' of https://github.com/rajandangi/moodle

This commit is contained in:
Andrew Nicols
2024-11-21 11:47:59 +08:00
+2
View File
@@ -84,6 +84,8 @@ function xsendfile($filepath) {
if (!$aliased) {
return false;
}
// Nginx expects the path to be url encoded see https://trac.nginx.org/nginx/ticket/316.
$filepath = rawurlencode($filepath);
}
header("$CFG->xsendfile: $filepath");