mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
🔒 XSS through emoji name https://github.com/siyuan-note/siyuan/issues/15034
This commit is contained in:
parent
9718d3b1c8
commit
0a17b83372
5 changed files with 11 additions and 38 deletions
|
|
@ -627,10 +627,6 @@ func getBlockInfo(c *gin.Context) {
|
|||
rootTitle := root.IAL["title"]
|
||||
rootTitle = html.UnescapeString(rootTitle)
|
||||
icon := root.IAL["icon"]
|
||||
if strings.Contains(icon, ".") {
|
||||
// XSS through emoji name https://github.com/siyuan-note/siyuan/issues/15034
|
||||
icon = util.FilterUploadEmojiFileName(icon)
|
||||
}
|
||||
ret.Data = map[string]string{
|
||||
"box": block.Box,
|
||||
"path": block.Path,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue