summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-11-08 12:48:51 +0000
committerGitHub <noreply@github.com>2018-11-08 12:48:51 +0000
commitc70809a275422353c5c7868bdc291f6a72dfaaf9 (patch)
tree9ef7be1ab2f398f328ec1b3fb6ebd42d3cc9e1c4 /synapse/rest
parentPort hash_password to Python 3 (#4161) (diff)
parentfix parse_string docstring (diff)
downloadsynapse-c70809a275422353c5c7868bdc291f6a72dfaaf9.tar.xz
Merge pull request #4163 from matrix-org/rav/fix_consent_on_py3
Fix encoding error for consent form on python3
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/consent/consent_resource.py4
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: