mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-24290, REPOSITORY fixed urlencode string in filename
This commit is contained in:
parent
c56449dff6
commit
8cc2bcf154
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ class repository_upload extends repository {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($saveas_filename)) {
|
if (empty($saveas_filename)) {
|
||||||
$record->filename = clean_param($_FILES[$elname]['name'], PARAM_FILE);
|
$record->filename = clean_param(urldecode($_FILES[$elname]['name']), PARAM_FILE);
|
||||||
} else {
|
} else {
|
||||||
$record->filename = $saveas_filename;
|
$record->filename = $saveas_filename;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue