Make uses of quote_slashes always operate on encoded strings

This commit is contained in:
Calen Pennington
2014-02-04 11:44:42 -05:00
parent f6731342de
commit 569c5def77
2 changed files with 3 additions and 3 deletions

View File

@@ -16,7 +16,7 @@ def handler_url(block, handler_name, suffix='', query='', thirdparty=False):
raise NotImplementedError("edX Studio doesn't support third-party xblock handler urls")
url = reverse('component_handler', kwargs={
'usage_id': quote_slashes(str(block.scope_ids.usage_id)),
'usage_id': quote_slashes(unicode(block.scope_ids.usage_id).encode('utf-8')),
'handler': handler_name,
'suffix': suffix,
}).rstrip('/')