diff --git a/backend/utils/cmd/cmd.go b/backend/utils/cmd/cmd.go index ec1e03436..fa290024e 100644 --- a/backend/utils/cmd/cmd.go +++ b/backend/utils/cmd/cmd.go @@ -177,7 +177,8 @@ func CheckIllegal(args ...string) bool { for _, arg := range args { if strings.Contains(arg, "&") || strings.Contains(arg, "|") || strings.Contains(arg, ";") || strings.Contains(arg, "$") || strings.Contains(arg, "'") || strings.Contains(arg, "`") || - strings.Contains(arg, "(") || strings.Contains(arg, ")") || strings.Contains(arg, "\"") { + strings.Contains(arg, "(") || strings.Contains(arg, ")") || strings.Contains(arg, "\"") || + strings.Contains(arg, "\n") || strings.Contains(arg, "\r") { return true } }