From 3eea5d933778331ab12e8a33b615c0440bdf880c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Fernanda=20Magallanes?= <35668326+MaferMazu@users.noreply.github.com> Date: Mon, 24 Jan 2022 11:04:58 -0400 Subject: [PATCH] fix: unicode submission history (#29338) Co-authored-by: Constanza Abarca --- lms/templates/courseware/xqa_interface.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } );