Commit 779b9576 authored by Fabien Morin's avatar Fabien Morin

some old documents don't have any content_type defined


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38825 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 57e278d8
......@@ -127,7 +127,7 @@ class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin,
"""
Convert text using portal_transforms or oood
"""
src_mimetype = self.getContentType()
src_mimetype = self.getContentType() or DEFAULT_CONTENT_TYPE
if not format and src_mimetype == 'text/html':
format = 'html' # Force safe_html
if not format:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment