mirror of
https://github.com/moodle/moodle.git
synced 2025-02-21 09:52:54 +01:00
Merge branch 'MDL-83501-url-encode-nginx-paths-MOODLE_405_STABLE' of https://github.com/rajandangi/moodle into MOODLE_405_STABLE
This commit is contained in:
commit
36f946b5db
@ -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