mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 11:46:19 +01:00
MDL-30165: Make repository file extension check case insensitive
This commit is contained in:
parent
735de1c276
commit
7633f4b55b
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user