Skip to content

Commit

Permalink
sanitize an additional input which was still missing
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
  • Loading branch information
thjaeckle committed May 17, 2024
1 parent 20399a0 commit 8fe1b3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/modules/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ export function addDropDownEntries(target: HTMLUListElement, labels: Array<Strin
export function addDropDownEntry(target: HTMLUListElement, label: String, isHeader: boolean = false, value?: String) {
const li = document.createElement('li');
li.innerHTML = isHeader ?
`<h6 class="dropdown-header" data-value='${value}'>${label}</h6>` :
`<a class="dropdown-item" data-value='${value}'>${label}</a>`;
`<h6 class="dropdown-header" data-value='${value}'>${sanitizeHTML(label)}</h6>` :
`<a class="dropdown-item" data-value='${value}'>${sanitizeHTML(label)}</a>`;
target.appendChild(li);
}

Expand Down

0 comments on commit 8fe1b3b

Please sign in to comment.