Fixed case-sensitive accept in filepicker field

This commit is contained in:
Matias Griese
2021-02-04 17:08:05 +02:00
parent 0f9a2567ea
commit 905a2a299f
2 changed files with 7 additions and 1 deletions

View File

@@ -912,7 +912,7 @@ class AdminBaseController
foreach ((array)$settings['accept'] as $type) {
$find = str_replace('*', '.*', $type);
$valid |= preg_match('#' . $find . '$#', $file);
$valid |= preg_match('#' . $find . '$#i', $file);
}
return $valid;