diff --git a/lms/templates/courseware/xqa_interface.html b/lms/templates/courseware/xqa_interface.html index ade9eae965..e765a4e00a 100644 --- a/lms/templates/courseware/xqa_interface.html +++ b/lms/templates/courseware/xqa_interface.html @@ -29,7 +29,7 @@ function setup_debug(element_id, edit_link, staff_context){ var location = $("#" + element_id + "_history_location").val(); // xss-lint: disable=mako-invalid-js-filter $("#" + element_id + "_history_text").load('/courses/' + "${six.text_type(getattr(course,'id','')) | u}" + - "/submission_history/" + username_or_email + "/" + location); + "/submission_history/" + encodeURIComponent(username_or_email) + "/" + location); return false; } );