mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-83501 core: URL encode paths for Nginx X-Accel-Redirect
This commit is contained in:
parent
ecfcf00d92
commit
ce040cb114
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user