修复读取页面渲染参数未正确处理空格的bug。

This commit is contained in:
zhengchao
2018-10-04 12:38:10 +08:00
parent 5a014f796e
commit 815b495ff9

View File

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