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