Merge pull request #2676 from thornbill/fix-displaymessage-xss
(cherry picked from commit 70b41ff005)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
committed by
Joshua M. Boniface
parent
dfcfaad39c
commit
4c1a301bdb
@@ -22,7 +22,7 @@ export default function (options) {
|
||||
|
||||
const elem = document.createElement('div');
|
||||
elem.classList.add('toast');
|
||||
elem.innerHTML = options.text;
|
||||
elem.textContent = options.text;
|
||||
|
||||
document.body.appendChild(elem);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user