mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-12-31 13:49:11 +03:00
Merge pull request #35 from chaizhenhua/remotes/trunk
Fixed Action Drop not work
This commit is contained in:
@@ -668,6 +668,9 @@ ngx_http_modsecurity_create_ctx(ngx_http_request_t *r)
|
|||||||
if (ctx->brigade == NULL) {
|
if (ctx->brigade == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
apr_table_setn(ctx->req->notes, NOTE_NGINX_REQUEST_CTX, (const char *) ctx);
|
||||||
|
|
||||||
return ctx;
|
return ctx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -472,6 +472,10 @@ int modsecProcessRequestBody(request_rec *r) {
|
|||||||
|
|
||||||
ap_remove_input_filter(f);
|
ap_remove_input_filter(f);
|
||||||
|
|
||||||
|
if (status != DECLINED) {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
|
||||||
hookfn_insert_filter(r);
|
hookfn_insert_filter(r);
|
||||||
|
|
||||||
/* Find the transaction context first. */
|
/* Find the transaction context first. */
|
||||||
|
|||||||
Reference in New Issue
Block a user