Fix comments Title if utf-8 characters in author_name

This commit is contained in:
Huub Bouma
2013-09-20 16:28:05 +02:00
parent 0463b20f78
commit fd85de9c30
3 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ class Comment(CatalogAware, WorkflowAware, DynamicType, Traversable,
content = aq_base(self.__parent__.__parent__)
title = translate(
Message(COMMENT_TITLE,
mapping={'author_name': author_name,
mapping={'author_name': safe_unicode(author_name),
'content': safe_unicode(content.Title())}))
return title