Skip to content

Commit

Permalink
Merge pull request #3875 from dodona-edu/fix/xss
Browse files Browse the repository at this point in the history
Fix XSS in course copy
  • Loading branch information
chvp authored Aug 9, 2022
2 parents 2a09168 + 40a2c3e commit 194f5fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/course.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ function initCourseNew() {
$(this)
.closest(".panel")
.find(".answer")
.html($(this).data("answer"));
.text($(this).data("answer"));
fetch(`/courses/new.js?copy_options[base_id]=${$(this).data("course_id")}`)
.then(req => req.text())
.then(resp => eval(resp));
Expand Down

0 comments on commit 194f5fa

Please sign in to comment.