Strip comment attributes

This commit is contained in:
Yax 2015-09-05 15:57:45 +02:00
parent d4dd8ac307
commit 890e18e9d5

View file

@ -51,9 +51,9 @@ def new_comment(data):
token = data.get('token', '')
url = data.get('url', '')
author_name = data.get('author', '')
author_email = data.get('email', '')
author_site = data.get('site', '')
author_name = data.get('author', '').strip()
author_email = data.get('email', '').strip()
author_site = data.get('site', '').strip()
message = data.get('message', '')
subscribe = data.get('subscribe', '')