mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 05:25:08 +02:00
MDL-37942 Images with non-alphanumeric chars in file name won't export
This commit is contained in:
parent
373a8e052c
commit
17ff23d743
@ -1250,7 +1250,7 @@ function portfolio_rewrite_pluginfile_url_callback($contextid, $component, $file
|
||||
$filename = array_pop($bits);
|
||||
$filepath = implode('/', $bits);
|
||||
}
|
||||
if (!$file = $fs->get_file($contextid, $component, $filearea, $itemid, $filepath, $filename)) {
|
||||
if (!$file = $fs->get_file($contextid, $component, $filearea, $itemid, $filepath, urldecode($filename))) {
|
||||
debugging("Couldn't find a file from the embedded path info context $contextid component $component filearea $filearea itemid $itemid filepath $filepath name $filename");
|
||||
return $matches;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user