Skip to content

Commit 8fe1b3b

Browse files
committed
sanitize an additional input which was still missing
Signed-off-by: Thomas Jäckle <[email protected]>
1 parent 20399a0 commit 8fe1b3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/modules/utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ export function addDropDownEntries(target: HTMLUListElement, labels: Array<Strin
165165
export function addDropDownEntry(target: HTMLUListElement, label: String, isHeader: boolean = false, value?: String) {
166166
const li = document.createElement('li');
167167
li.innerHTML = isHeader ?
168-
`<h6 class="dropdown-header" data-value='${value}'>${label}</h6>` :
169-
`<a class="dropdown-item" data-value='${value}'>${label}</a>`;
168+
`<h6 class="dropdown-header" data-value='${value}'>${sanitizeHTML(label)}</h6>` :
169+
`<a class="dropdown-item" data-value='${value}'>${sanitizeHTML(label)}</a>`;
170170
target.appendChild(li);
171171
}
172172

0 commit comments

Comments
 (0)