mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 XSS through emoji name https://github.com/siyuan-note/siyuan/issues/15034
This commit is contained in:
parent
b804cd2d61
commit
e492b1fa51
9 changed files with 20 additions and 13 deletions
|
|
@ -234,7 +234,7 @@ func InitConf() {
|
|||
for i, emoji := range Conf.Editor.Emoji {
|
||||
if strings.Contains(emoji, ".") {
|
||||
// XSS through emoji name https://github.com/siyuan-note/siyuan/issues/15034
|
||||
emoji = util.FilterUploadFileName(emoji)
|
||||
emoji = util.FilterUploadEmojiFileName(emoji)
|
||||
Conf.Editor.Emoji[i] = emoji
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue