Add additional extension filtering
This commit is contained in:
parent
94427053f1
commit
5be4d74045
1 changed files with 4 additions and 1 deletions
|
@ -336,7 +336,10 @@ class Groups extends Admin
|
||||||
foreach ($exts as $ext) {
|
foreach ($exts as $ext) {
|
||||||
$ext = \trim($ext);
|
$ext = \trim($ext);
|
||||||
|
|
||||||
if (\preg_match('%^[a-z0-9]+(?:[_-]+[a-z0-9]+)*$%iD', $ext)) {
|
if (
|
||||||
|
\preg_match('%^[a-z0-9]+(?:[_-]+[a-z0-9]+)*$%iD', $ext)
|
||||||
|
&& ! \preg_match($this->c->attachments::BAD_EXTS, $ext)
|
||||||
|
) {
|
||||||
$result[] = $ext;
|
$result[] = $ext;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue