Daniel 2025-06-17 11:18:38 +08:00
parent 76d3fa3895
commit f95d3b99bd
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -127,10 +127,16 @@ func ListNotebooks() (ret []*Box, err error) {
}
id := dir.Name()
icon := boxConf.Icon
if strings.Contains(icon, ".") { // 说明是自定义图标
// XSS through emoji name https://github.com/siyuan-note/siyuan/issues/15034
icon = util.FilterUploadFileName(icon)
}
box := &Box{
ID: id,
Name: boxConf.Name,
Icon: boxConf.Icon,
Icon: icon,
Sort: boxConf.Sort,
SortMode: boxConf.SortMode,
Closed: boxConf.Closed,