Merge pull request #35 from chaizhenhua/remotes/trunk

Fixed Action Drop not work
This commit is contained in:
Breno Silva
2013-01-27 10:02:04 -08:00
2 changed files with 7 additions and 0 deletions

View File

@@ -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;
} }

View File

@@ -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. */