Commit dfd346a1 authored by Tomáš Peterka's avatar Tomáš Peterka Committed by Tomáš Peterka

[hal_json] Ensure JSON-deserialized values are UTF8

parent 3a080d8b
......@@ -1383,7 +1383,7 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
extra_param_json = {}
if isinstance(extra_param_json, str):
extra_param_json = ensureDeserialized(json.loads(urlsafe_b64decode(extra_param_json)))
extra_param_json = ensureDeserialized(byteify(json.loads(urlsafe_b64decode(extra_param_json))))
for k, v in byteify(extra_param_json.items()):
REQUEST.set(k, v)
......@@ -1696,7 +1696,7 @@ def calculateHateoas(is_portal=None, is_site_root=None, traversed_document=None,
extra_param_json = {}
if isinstance(extra_param_json, str):
extra_param_json = ensureDeserialized(json.loads(urlsafe_b64decode(extra_param_json)))
extra_param_json = ensureDeserialized(byteify(json.loads(urlsafe_b64decode(extra_param_json))))
for key, value in byteify(extra_param_json.items()):
REQUEST.set(key, value)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment