0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-17 23:42:33 +01:00

Fix encoding error for consent form on python3

The form was rendering this as "b'01234....'".

-- richvdh
This commit is contained in:
hera 2018-11-08 11:03:08 +00:00 committed by Richard van der Hoff
parent 264cb14402
commit 2b075fb03a

View file

@ -160,7 +160,9 @@ class ConsentResource(Resource):
try: try:
self._render_template( self._render_template(
request, "%s.html" % (version,), request, "%s.html" % (version,),
user=username, userhmac=userhmac, version=version, user=username,
userhmac=userhmac.decode('ascii'),
version=version,
has_consented=has_consented, public_version=public_version, has_consented=has_consented, public_version=public_version,
) )
except TemplateNotFound: except TemplateNotFound: