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:
parent
c31fa5de02
commit
faca02d257
1 changed files with 4 additions and 1 deletions
|
@ -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("");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue