Browse Source
Restringe tipos de arquivos para upload (#3794)
restringe tipos de arquivos para upload
pull/3796/head
joaohortsenado
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
0 additions and
3 deletions
-
sapl/utils.py
|
|
@ -594,7 +594,6 @@ TIPOS_TEXTO_PERMITIDOS = ( |
|
|
|
'application/x-vnd.oasis.opendocument.text', |
|
|
|
'application/pdf', |
|
|
|
'application/x-pdf', |
|
|
|
'application/zip', |
|
|
|
'application/acrobat', |
|
|
|
'applications/vnd.pdf', |
|
|
|
'text/pdf', |
|
|
@ -608,9 +607,7 @@ TIPOS_TEXTO_PERMITIDOS = ( |
|
|
|
'application/msword', |
|
|
|
'application/vnd.openxmlformats-officedocument.wordprocessingml.document', |
|
|
|
'application/xml', |
|
|
|
'application/octet-stream', |
|
|
|
'text/xml', |
|
|
|
'text/html', |
|
|
|
) |
|
|
|
|
|
|
|
TIPOS_IMG_PERMITIDOS = ( |
|
|
|