[Erp5-report] r24203 - /erp5/trunk/products/ERP5/Document/EmailDocument.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Oct 15 18:04:07 CEST 2008
Author: nicolas
Date: Wed Oct 15 18:04:05 2008
New Revision: 24203
URL: http://svn.erp5.org?rev=24203&view=rev
Log:
Reject empty string too
Modified:
erp5/trunk/products/ERP5/Document/EmailDocument.py
Modified: erp5/trunk/products/ERP5/Document/EmailDocument.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/EmailDocument.py?rev=24203&r1=24202&r2=24203&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/EmailDocument.py (original)
+++ erp5/trunk/products/ERP5/Document/EmailDocument.py Wed Oct 15 18:04:05 2008
@@ -372,8 +372,8 @@
"""
if html_text is None:
html_text = self.getTextContent()
- if html_text is None:
- return None
+ if not html_text:
+ return html_text
if not import_libxml2:
return html_text
#Null char. is not allowed by parser
More information about the Erp5-report
mailing list