Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-03-04 11:48:09 +08:00
parent 285f7c216a
commit d68bd5a793
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 56 additions and 9 deletions

View file

@ -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")