Skip to content

Commit 5050493

Browse files
committed
chore(about): escape supporters and contributors
1 parent 0d7d68f commit 5050493

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/ts/pages/about.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ async function fill(): Promise<void> {
151151
const supportersEl = document.querySelector(".pageAbout .supporters");
152152
let supportersHTML = "";
153153
for (const supporter of supporters ?? []) {
154-
supportersHTML += `<div>${supporter}</div>`;
154+
supportersHTML += `<div>${Misc.escapeHTML(supporter)}</div>`;
155155
}
156156
if (supportersEl) {
157157
supportersEl.innerHTML = supportersHTML;
@@ -160,7 +160,7 @@ async function fill(): Promise<void> {
160160
const contributorsEl = document.querySelector(".pageAbout .contributors");
161161
let contributorsHTML = "";
162162
for (const contributor of contributors ?? []) {
163-
contributorsHTML += `<div>${contributor}</div>`;
163+
contributorsHTML += `<div>${Misc.escapeHTML(contributor)}</div>`;
164164
}
165165
if (contributorsEl) {
166166
contributorsEl.innerHTML = contributorsHTML;

0 commit comments

Comments
 (0)