mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 08:09:47 +02:00
MDL-25215 fix file.JPG.jpg extension problems
This commit is contained in:
parent
419814db02
commit
db30cfca84
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ class repository_upload extends repository {
|
|||
}
|
||||
}
|
||||
$ext = !empty($ext) ? $ext : '';
|
||||
if (preg_match('#\.(' . $ext . ')$#', $saveas_filename)) {
|
||||
if (preg_match('#\.(' . $ext . ')$#i', $saveas_filename)) {
|
||||
// saveas filename contains file extension already
|
||||
$record->filename = $saveas_filename;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue