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

@@ -1,3 +1,9 @@
# v1.10.4
## dd/mm/2021
1. [](#bugfix)
* Fixed case-sensitive `accept` in `filepicker` field
# v1.10.3 # v1.10.3
## 02/01/2021 ## 02/01/2021

View File

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