diff --git a/plone/app/discussion/comment.py b/plone/app/discussion/comment.py index f167a1d..1082c88 100644 --- a/plone/app/discussion/comment.py +++ b/plone/app/discussion/comment.py @@ -225,7 +225,7 @@ def notify_user(obj, event): context=obj.REQUEST) message = translate(Message( MAIL_NOTIFICATION_MESSAGE, - mapping={'title': content_object.title, + mapping={'title': safe_unicode(content_object.title), 'link': content_object.absolute_url()}), context=obj.REQUEST) for email in emails: @@ -279,7 +279,7 @@ def notify_moderator(obj, event): #comment = conversation.getComments().next() subject = translate(_(u"A comment has been posted."), context=obj.REQUEST) message = translate(Message(MAIL_NOTIFICATION_MESSAGE, - mapping={'title': content_object.title, + mapping={'title': safe_unicode(content_object.title), 'link': content_object.absolute_url()}), context=obj.REQUEST)