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",