mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
MDL-25215 fix file.JPG.jpg extension problems
This commit is contained in:
parent
419814db02
commit
db30cfca84
@ -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…
x
Reference in New Issue
Block a user