mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-23 08:46:09 +01:00
🔒 XSS in inline-memo https://github.com/siyuan-note/siyuan/issues/15280
This commit is contained in:
parent
2ea8743fbf
commit
87501a1bdd
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ const setHTML = (options: {
|
|||
}
|
||||
|
||||
if (DOMPurify) {
|
||||
// XSS in inline-memo https://github.com/siyuan-note/siyuan/issues/15280
|
||||
// XSS in inline memo elements https://github.com/siyuan-note/siyuan/issues/15280
|
||||
const parser = new DOMParser();
|
||||
const doc = parser.parseFromString(options.content, "text/html");
|
||||
doc.querySelectorAll("[data-inline-memo-content]").forEach(item => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue