MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / checkDangerousContent

Function checkDangerousContent

setting/console_setting/validation.go:43–51  ·  view source on GitHub ↗
(content string, index int, itemType string)

Source from the content-addressed store, hash-verified

41}
42
43func checkDangerousContent(content string, index int, itemType string) error {
44 lower := strings.ToLower(content)
45 for _, d := range dangerousChars {
46 if strings.Contains(lower, d) {
47 return fmt.Errorf("第%d个%s包含不允许的内容", index, itemType)
48 }
49 }
50 return nil
51}
52
53func getJSONList(jsonStr string) []map[string]interface{} {
54 if jsonStr == "" {

Callers 2

validateApiInfoFunction · 0.85
validateUptimeKumaGroupsFunction · 0.85

Calls 1

ContainsMethod · 0.80

Tested by

no test coverage detected