MDL-30165: Make repository file extension check case insensitive

This commit is contained in:
Andrew Robert Nicols 2011-11-07 11:14:19 +00:00
parent 735de1c276
commit 7633f4b55b

View File

@ -1619,7 +1619,7 @@ abstract class repository {
$pass = true;
} else {
foreach ($extensions as $ext) {
if (preg_match('#'.$ext.'$#', $value['title'])) {
if (preg_match('#'.$ext.'$#i', $value['title'])) {
$pass = true;
}
}