mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-07 21:22:34 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
285f7c216a
commit
d68bd5a793
3 changed files with 56 additions and 9 deletions
|
|
@ -165,7 +165,7 @@ func getDynamicIcon(c *gin.Context) {
|
|||
}
|
||||
|
||||
if !model.Conf.Editor.AllowSVGScript {
|
||||
svg = util.RemoveScriptsInSVG(svg)
|
||||
svg = util.SanitizeSVG(svg)
|
||||
}
|
||||
|
||||
c.Header("Content-Type", "image/svg+xml")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue