mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 02:46:04 +01:00
Merge branch 'develop' into 1.10
# Conflicts: # CHANGELOG.md # themes/grav/css-compiled/preset.css.map # themes/grav/css-compiled/template.css # themes/grav/css-compiled/template.css.map # themes/grav/templates/pages.html.twig
This commit is contained in:
@@ -338,7 +338,7 @@ class AdminBaseController
|
||||
}
|
||||
|
||||
$isMime = strstr($type, '/');
|
||||
$find = str_replace(['.', '*'], ['\.', '.*'], $type);
|
||||
$find = str_replace(['.', '*', '+'], ['\.', '.*', '\+'], $type);
|
||||
|
||||
if ($isMime) {
|
||||
$match = preg_match('#' . $find . '$#', $mime);
|
||||
|
||||
Reference in New Issue
Block a user