mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 10:56:08 +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
|
# v1.10.3
|
||||||
## 02/01/2021
|
## 02/01/2021
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user