Permalink
Browse files

MDL-30165: Make repository file extension check case insensitive

  • Loading branch information...
1 parent 735de1c commit 7633f4b55bda7c5bffb07358720a80f879a33bf9 @andrewnicols andrewnicols committed 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 7633f4b

Please sign in to comment.