Commit 7f8a3276 authored by Ivan Tyagov's avatar Ivan Tyagov

Portal transforms recognizes 'text/x-html-safe' not text/xhtml-safe'

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36475 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 84dccfc9
......@@ -455,7 +455,7 @@ class OOoDocument(PermanentURLMixIn, BaseConvertableFileMixin, File,
# call portal_transforms to strip HTML in safe mode
portal = self.getPortalObject()
transform_tool = getToolByName(portal, 'portal_transforms')
data = transform_tool.convertToData('text/xhtml-safe',
data = transform_tool.convertToData('text/x-html-safe',
zip_file.read(file_name),
object=self, context=self,
mimetype=mime)
......
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