mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +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
|
|
@ -471,6 +471,10 @@ func getBlockKramdown(c *gin.Context) {
|
|||
}
|
||||
|
||||
id := arg["id"].(string)
|
||||
if util.InvalidIDPattern(id, ret) {
|
||||
return
|
||||
}
|
||||
|
||||
kramdown := model.GetBlockKramdown(id)
|
||||
ret.Data = map[string]string{
|
||||
"id": id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue