TSG-8967 修复facebook的评论内容无法删除
This commit is contained in:
@@ -188,7 +188,7 @@ static void pangu_http_stat_init(struct pangu_rt * pangu_runtime)
|
|||||||
spec[STAT_ACTION_HIJACK_SZ]="hijk_bytes";
|
spec[STAT_ACTION_HIJACK_SZ]="hijk_bytes";
|
||||||
spec[STAT_ACTION_INSERT]="intcp_ins_num";
|
spec[STAT_ACTION_INSERT]="intcp_ins_num";
|
||||||
spec[STAT_ACTION_INSERT_SZ]="ins_bytes";
|
spec[STAT_ACTION_INSERT_SZ]="ins_bytes";
|
||||||
spec[STAT_ACTION_EDIT_ELEMENT]="intcp_elem_num";
|
spec[STAT_ACTION_EDIT_ELEMENT]="intcp_edit_elem_num";
|
||||||
spec[STAT_ACTION_WHITELSIT]="intcp_allow_num";
|
spec[STAT_ACTION_WHITELSIT]="intcp_allow_num";
|
||||||
spec[STAT_SUSPENDING]="suspending";
|
spec[STAT_SUSPENDING]="suspending";
|
||||||
|
|
||||||
@@ -559,6 +559,10 @@ void policy_action_param_free_cb(int table_id, const struct Maat_rule_t* rule, c
|
|||||||
FREE(&(param->repl_rule[i].replace_with));
|
FREE(&(param->repl_rule[i].replace_with));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (param->elem_rule)
|
||||||
|
FREE(&(param->elem_rule));
|
||||||
|
if (param->repl_rule)
|
||||||
|
FREE(&(param->repl_rule));
|
||||||
if (param->message)
|
if (param->message)
|
||||||
FREE(&(param->message));
|
FREE(&(param->message));
|
||||||
if (param->position)
|
if (param->position)
|
||||||
@@ -2139,7 +2143,7 @@ void http_element(const struct tfe_stream * stream, const struct tfe_http_sessio
|
|||||||
{
|
{
|
||||||
rewrite_sz = execute_edit_element_rule(__http_body, __http_body_len, edit_ctx->item, edit_ctx->n_item, &rewrite_buff, 0);
|
rewrite_sz = execute_edit_element_rule(__http_body, __http_body_len, edit_ctx->item, edit_ctx->n_item, &rewrite_buff, 0);
|
||||||
}
|
}
|
||||||
if(in_resp_spec->content_type != NULL && strcasestr(in_resp_spec->content_type, "json"))
|
if(in_resp_spec->content_type != NULL && (strcasestr(in_resp_spec->content_type, "json") || strcasestr(in_resp_spec->content_type, "text/javascript")))
|
||||||
{
|
{
|
||||||
rewrite_sz = execute_edit_element_rule(__http_body, __http_body_len, edit_ctx->item, edit_ctx->n_item, &rewrite_buff, 1);
|
rewrite_sz = execute_edit_element_rule(__http_body, __http_body_len, edit_ctx->item, edit_ctx->n_item, &rewrite_buff, 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user