1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 00:05:22 +03:00

Prevent XSS attack

This commit is contained in:
Mark Haslinghuis 2025-06-15 23:53:39 +02:00
parent c31fa5de02
commit faca02d257

View file

@ -794,7 +794,10 @@ export class MSPDebugDashboard {
};
container.innerHTML = activeAlerts
.map(([alertType, _]) => `<div class="alert-item">${alertMessages[alertType] || alertType}</div>`)
.map(
([alertType, _]) =>
`<div class="alert-item">${alertMessages[alertType] || this.escapeHtml(alertType)}</div>`,
)
.join("");
}