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
09f0fce4f4
commit
95ae34c7b1
2 changed files with 13 additions and 1 deletions
|
|
@ -173,6 +173,7 @@ func getEmojiConf(c *gin.Context) {
|
|||
if !util.IsValidUploadFileName(html.UnescapeString(name)) {
|
||||
// XSS through emoji name https://github.com/siyuan-note/siyuan/issues/15034
|
||||
logging.LogWarnf("invalid custom emoji name [%s]", name)
|
||||
continue
|
||||
}
|
||||
|
||||
if customEmoji.IsDir() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue