Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-30165: Make repository file extension check case insensitive

  • Loading branch information...
commit 4397b907bdee55911de8c3a55ee38cb3b310906a 1 parent f029a59
@andrewnicols andrewnicols authored stronk7 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  repository/lib.php
View
2  repository/lib.php
@@ -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;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.