Merge 'Convert anonymous-supplied name to unicode as done for authenticated members.' from jarn-unicode branch.
svn path=/plone.app.discussion/trunk/; revision=45662
This commit is contained in:
@@ -136,6 +136,8 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
|
||||
text = data['text']
|
||||
if 'author_name' in data:
|
||||
author_name = data['author_name']
|
||||
if isinstance(author_name, str):
|
||||
author_name = unicode(author_name, 'utf-8')
|
||||
if 'author_email' in data:
|
||||
author_email = data['author_email']
|
||||
if 'user_notification' in data:
|
||||
|
||||
Reference in New Issue
Block a user