diff --git a/product/ERP5Type/WebDAVSupport.py b/product/ERP5Type/WebDAVSupport.py index 1223c9dbc49e270aee4cb2afddcc2c3db8145278..2e8fff8c0490f28cb764d3a750ea95fe8380a29b 100644 --- a/product/ERP5Type/WebDAVSupport.py +++ b/product/ERP5Type/WebDAVSupport.py @@ -114,7 +114,7 @@ class TextContent: body = bodyfinder(text) else: headers, body = parseHeadersBody(text, headers) - return headers, body, format + return headers, text, format ## FTP handlers security.declareProtected(Permissions.ModifyPortalContent, 'PUT') @@ -187,7 +187,7 @@ class TextContent: bodytext = self._htmlsrc % { 'title': self.getTitle(), 'metatags': hdrtext, - 'body': self.getTextContent(''), + 'body': self.asStrippedHTML(''), } else: hdrtext = formatRFC822Headers( hdrlist )