Commit 3b76a557 authored by Nicolas Delaby's avatar Nicolas Delaby

Prevent TypeError if null char is inside parsed strings

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23158 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 59c33102
......@@ -370,6 +370,8 @@ class EmailDocument(File, TextDocument):
return None
if not import_libxml2:
return html_text
#Null char. is not allowed by parser
html_text = html_text.replace(chr(0), '')
exclude_tag_list = ('html', 'head', 'body',)
xsl_as_string = """<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
......
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