Skip to content
Browse files

MDL-25215 fix file.JPG.jpg extension problems

  • Loading branch information...
1 parent 419814d commit db30cfca846fe21f093362977488a4d951abd903 @skodak skodak committed Feb 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 repository/upload/lib.php
View
2 repository/upload/lib.php
@@ -114,7 +114,7 @@ public function upload($saveas_filename, $maxbytes) {
}
}
$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 {

0 comments on commit db30cfc

Please sign in to comment.
Something went wrong with that request. Please try again.