Skip to content

Commit

Permalink
solved cross-site scripting:DOM issue
Browse files Browse the repository at this point in the history
  • Loading branch information
RalucaOT committed Jun 27, 2024
1 parent 6687f95 commit dd9d340
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions media/edit-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
}

function addOptionsForSelect(options, field, selectedName) {
let fieldName = field[0].name;
let fieldName = $.escapeSelector(field[0].name);
let select = $('#' + fieldName);
let html = ``;
select.html(html);
Expand Down Expand Up @@ -205,7 +205,7 @@
}

function addOptionsForMultipleSelect(options, field, selected) {
let fieldName = field[0].name;
let fieldName = $.escapeSelector(field[0].name);
let select = $('#' + fieldName);
let html = ``;
select.html(html);
Expand Down

0 comments on commit dd9d340

Please sign in to comment.