MDL-30165: Make repository file extension check case insensitive
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
f029a59e24
commit
4397b907bd
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user