Permalink
Browse files

MDL-30165: Make repository file extension check case insensitive

  • Loading branch information...
1 parent ad4ac9d commit 8c10f16d343d0d1d2445f6c4c3dac59685d30c93 @andrewnicols andrewnicols committed with stronk7 Nov 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 repository/lib.php
View
@@ -1545,7 +1545,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 8c10f16

Please sign in to comment.