From 815b495ff991757bbdbb07f10f87f391ef61f2ba Mon Sep 17 00:00:00 2001 From: zhengchao Date: Thu, 4 Oct 2018 12:38:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=BB=E5=8F=96=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=B8=B2=E6=9F=93=E5=8F=82=E6=95=B0=E6=9C=AA=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E5=A4=84=E7=90=86=E7=A9=BA=E6=A0=BC=E7=9A=84bug?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/business/pangu-http/pangu_http.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/business/pangu-http/pangu_http.cpp b/plugin/business/pangu-http/pangu_http.cpp index 7269634..224a56a 100644 --- a/plugin/business/pangu-http/pangu_http.cpp +++ b/plugin/business/pangu-http/pangu_http.cpp @@ -571,7 +571,7 @@ static void http_reject(const struct tfe_http_session * session, enum tfe_http_e char msg[TFE_STRING_MAX]; struct tfe_http_session * to_write_sess = NULL; - ret = sscanf(ctx->enforce_para, "code=%d;content=%s", &resp_code, msg); + ret = sscanf(ctx->enforce_para, "code=%d;content=%[^\n]", &resp_code, msg); if (ret != 2) { TFE_LOG_ERROR(g_pangu_rt->local_logger, "Invalid reject rule %d paramter %s",