mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-30 01:36:27 +01:00
Fixed case-sensitive accept in filepicker field
This commit is contained in:
@@ -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