Commit 7cc4d9ff authored by Jérome Perrin's avatar Jérome Perrin

hack: do not force safe html

parent 0e2352aa
......@@ -155,8 +155,8 @@ class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin,
if not self.hasConversion(**kw):
portal_transforms = portal.portal_transforms
filename = self.getFilename()
if mime_type == 'text/html':
mime_type = 'text/x-html-safe'
# if mime_type == 'text/html':
# mime_type = 'text/x-html-safe'
if src_mimetype != "image/svg+xml":
result = portal_transforms.convertToData(mime_type, text_content,
object=self, context=self,
......
  • I don't really remember, but I think this hack was to easily display web pages in web_site_module/doc, I think the <img src="base64" images were not displayed properly in that version. Should be fixed in current erp5.

    /cc @xiaowu.zhang @luke

  • I do not know it at all. Regarding diff, wouldn't it be better to remove it instead of commenting out?

  • this was really a hack, now this patch is no longer needed I think.

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