Browse Source

Limita buffer para magic na exportação de docs

pull/2056/head
Marcio Mazza 7 years ago
parent
commit
84aa257b70
  1. 2
      sapl/legacy/scripts/exporta_zope/exporta_zope.py

2
sapl/legacy/scripts/exporta_zope/exporta_zope.py

@ -79,7 +79,7 @@ def br(obj):
def guess_extension(fullname, buffer):
mime = magic.from_buffer(buffer, mime=True)
mime = magic.from_buffer(buffer[:1024], mime=True)
extensao = EXTENSOES.get(mime)
if extensao is not None:
return extensao

Loading…
Cancel
Save