[FIX] website_form: custom field thing blows up in P3

Custory reading seems to denote that field names are probably already
text in the normal case, and thus should not need decoding? It only
blows up in a tour so...
This commit is contained in:
Xavier Morel
2017-09-14 15:41:13 +02:00
parent 4bcd444eae
commit 359d91e94a
+1 -1
View File
@@ -142,7 +142,7 @@ class WebsiteForm(http.Controller):
# If it's a custom field
elif field_name != 'context':
data['custom'] += "%s : %s\n" % (field_name.decode('utf-8'), field_value)
data['custom'] += u"%s : %s\n" % (field_name, field_value)
# Add metadata if enabled
environ = request.httprequest.headers.environ