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:
parent
91a488931d
commit
5b788d1156
@ -4,6 +4,9 @@ Changelog
|
|||||||
1.0RC1 (unreleased)
|
1.0RC1 (unreleased)
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
- Convert anonymous-supplied name to unicode as done for authenticated members.
|
||||||
|
[ggozad]
|
||||||
|
|
||||||
- Catch SMTP exceptions when sending email notifications.
|
- Catch SMTP exceptions when sending email notifications.
|
||||||
[timo]
|
[timo]
|
||||||
|
|
||||||
|
@ -136,6 +136,8 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
|
|||||||
text = data['text']
|
text = data['text']
|
||||||
if 'author_name' in data:
|
if 'author_name' in data:
|
||||||
author_name = data['author_name']
|
author_name = data['author_name']
|
||||||
|
if isinstance(author_name, str):
|
||||||
|
author_name = unicode(author_name, 'utf-8')
|
||||||
if 'author_email' in data:
|
if 'author_email' in data:
|
||||||
author_email = data['author_email']
|
author_email = data['author_email']
|
||||||
if 'user_notification' in data:
|
if 'user_notification' in data:
|
||||||
|
Loading…
Reference in New Issue
Block a user