mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #6985 from theWorstComrade/huntr_xss_fix
Document upload - fix stored xss
This commit is contained in:
commit
9e489535cc
@ -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…
x
Reference in New Issue
Block a user