mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 05:32:33 +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
|
|
@ -618,7 +618,7 @@ func serveSVG(context *gin.Context, assetAbsPath string) bool {
|
|||
}
|
||||
|
||||
if !model.Conf.Editor.AllowSVGScript {
|
||||
data = []byte(util.RemoveScriptsInSVG(string(data)))
|
||||
data = []byte(util.SanitizeSVG(string(data)))
|
||||
}
|
||||
|
||||
context.Data(200, "image/svg+xml", data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue