[CMF-checkins] CVS: CMF/CMFDefault - DiscussionItem.py:1.32
Andy McKay
andy@agmweb.ca
Fri, 11 Apr 2003 17:44:43 -0400
Update of /cvs-repository/CMF/CMFDefault
In directory cvs.zope.org:/tmp/cvs-serv5609
Modified Files:
DiscussionItem.py
Log Message:
Rrather serious issue. Discussion and News Items get scrubbed, but not comments on those same types :)
=== CMF/CMFDefault/DiscussionItem.py 1.31 => 1.32 ===
--- CMF/CMFDefault/DiscussionItem.py:1.31 Thu Feb 13 03:35:28 2003
+++ CMF/CMFDefault/DiscussionItem.py Fri Apr 11 17:44:43 2003
@@ -58,6 +58,8 @@
)
+from utils import scrubHTML
+
def addDiscussionItem(self, id, title, description, text_format, text,
reply_to, RESPONSE=None):
"""
@@ -69,9 +71,9 @@
Otherwise, same as addDocument
"""
-
+
if not description: description = title
-
+ text = scrubHTML(text)
item = DiscussionItem( id )
item.title = title
item.description = description