diff options
author | hera <matrix@hera.matrix.org> | 2018-11-08 11:03:08 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2019-02-13 14:24:42 +0000 |
commit | 1f8a82077e9ac679af1fd76969aa551da65ff3a8 (patch) | |
tree | 360305b2a2226aa483e2a95bad32f35f2c9a1a52 | |
parent | pep8 (diff) | |
download | synapse-1f8a82077e9ac679af1fd76969aa551da65ff3a8.tar.xz |
Fix encoding error for consent form on python3
The form was rendering this as "b'01234....'". -- richvdh
-rw-r--r-- | synapse/rest/consent/consent_resource.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/rest/consent/consent_resource.py b/synapse/rest/consent/consent_resource.py index e0f7de5d5c..8009b7ff1c 100644 --- a/synapse/rest/consent/consent_resource.py +++ b/synapse/rest/consent/consent_resource.py @@ -160,7 +160,9 @@ class ConsentResource(Resource): try: self._render_template( 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, ) except TemplateNotFound: |