Permalink
Browse files

MDL-30165: Make repository file extension check case insensitive

  • Loading branch information...
1 parent f029a59 commit 4397b907bdee55911de8c3a55ee38cb3b310906a @andrewnicols andrewnicols committed with stronk7 Nov 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 repository/lib.php
View
@@ -1619,7 +1619,7 @@ public function filter(&$value) {
$pass = true;
} else {
foreach ($extensions as $ext) {
- if (preg_match('#'.$ext.'$#', $value['title'])) {
+ if (preg_match('#'.$ext.'$#i', $value['title'])) {
$pass = true;
}
}

0 comments on commit 4397b90

Please sign in to comment.