Skip to content

Commit 3efdf01

Browse files
committed
1680: add sanitation of error-message from codeharbor
1 parent a4f52e5 commit 3efdf01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/assets/javascripts/exercises.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ $(document).on('turbolinks:load', function () {
389389
url: Routes.export_external_confirm_exercise_path(exerciseID),
390390
dataType: 'json',
391391
success: function (response) {
392-
$messageDiv.html(response.message)
392+
$messageDiv.html(_.escape(response.message))
393393
$actionsDiv.html(response.actions);
394394

395395
if (response.status === 'success') {

0 commit comments

Comments
 (0)