From 1ff5bf85e932a7d8ea86cd90407f5e84b6e3ac9a Mon Sep 17 00:00:00 2001 From: an4er <95564938+an5er@users.noreply.github.com> Date: Fri, 22 Mar 2024 14:18:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E6=B3=A8=E5=85=A5waf=E8=A2=AB=E7=BB=95=E8=BF=87=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#4268)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/utils/cmd/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/utils/cmd/cmd.go b/backend/utils/cmd/cmd.go index fa290024e..4e32bad1d 100644 --- a/backend/utils/cmd/cmd.go +++ b/backend/utils/cmd/cmd.go @@ -178,7 +178,7 @@ func CheckIllegal(args ...string) bool { 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, "\n") || strings.Contains(arg, "\r") { + strings.Contains(arg, "\n") || strings.Contains(arg, "\r") || strings.Contains(arg, ">") { return true } }