mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
🎨 内核 API 校验 ID 格式 Fix https://github.com/siyuan-note/siyuan/issues/7228
This commit is contained in:
parent
b321185248
commit
f37678a98b
8 changed files with 98 additions and 0 deletions
|
|
@ -56,6 +56,10 @@ func renderTemplate(c *gin.Context) {
|
|||
|
||||
p := arg["path"].(string)
|
||||
id := arg["id"].(string)
|
||||
if util.InvalidIDPattern(id, ret) {
|
||||
return
|
||||
}
|
||||
|
||||
content, err := model.RenderTemplate(p, id)
|
||||
if nil != err {
|
||||
ret.Code = -1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue