Merge pull request #6985 from theWorstComrade/huntr_xss_fix
Document upload - fix stored xss
This commit is contained in:
commit
9e489535cc
1 changed files with 1 additions and 4 deletions
|
|
@ -43,7 +43,7 @@ class Document extends EntityModel
|
|||
'application/msword',
|
||||
'application/excel', 'application/vnd.ms-excel', 'application/x-excel', 'application/x-msexcel',
|
||||
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
||||
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/postscript', 'image/svg+xml',
|
||||
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/postscript',
|
||||
'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/vnd.ms-powerpoint',
|
||||
];
|
||||
|
||||
|
|
@ -57,9 +57,6 @@ class Document extends EntityModel
|
|||
'ai' => [
|
||||
'mime' => 'application/postscript',
|
||||
],
|
||||
'svg' => [
|
||||
'mime' => 'image/svg+xml',
|
||||
],
|
||||
'jpeg' => [
|
||||
'mime' => 'image/jpeg',
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue