修复读取页面渲染参数未正确处理空格的bug。
This commit is contained in:
@@ -571,7 +571,7 @@ static void http_reject(const struct tfe_http_session * session, enum tfe_http_e
|
|||||||
char msg[TFE_STRING_MAX];
|
char msg[TFE_STRING_MAX];
|
||||||
struct tfe_http_session * to_write_sess = NULL;
|
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)
|
if (ret != 2)
|
||||||
{
|
{
|
||||||
TFE_LOG_ERROR(g_pangu_rt->local_logger, "Invalid reject rule %d paramter %s",
|
TFE_LOG_ERROR(g_pangu_rt->local_logger, "Invalid reject rule %d paramter %s",
|
||||||
|
|||||||
Reference in New Issue
Block a user