mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 19:06:16 +01:00
Fixed case-sensitive accept in filepicker field
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
# v1.10.4
|
||||
## dd/mm/2021
|
||||
|
||||
1. [](#bugfix)
|
||||
* Fixed case-sensitive `accept` in `filepicker` field
|
||||
|
||||
# v1.10.3
|
||||
## 02/01/2021
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user