diff --git a/kernel/model/asset_content.go b/kernel/model/asset_content.go index f41e3ef89..c22cecade 100644 --- a/kernel/model/asset_content.go +++ b/kernel/model/asset_content.go @@ -63,6 +63,9 @@ func GetAssetContent(id, query string, queryMethod int) (ret *AssetContent) { query = stringQuery(query) } } + if !ast.IsNodeIDPattern(id) { + return + } table := "asset_contents_fts_case_insensitive" filter := " id = '" + id + "'"