Created
February 19, 2016 03:07
-
-
Save p0pr0ck5/a24b2f8f8cd00997df41 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/ngx_http_modsecurity_body_filter.c b/src/ngx_http_modsecurity_body_filter.c | |
index 1e81d96..7e48087 100644 | |
--- a/src/ngx_http_modsecurity_body_filter.c | |
+++ b/src/ngx_http_modsecurity_body_filter.c | |
@@ -56,6 +56,8 @@ ngx_int_t ngx_http_modsecurity_body_filter(ngx_http_request_t *r, ngx_chain_t *i | |
for (; chain != NULL; chain = chain->next) | |
{ | |
+ dd("checking chain %p", chain); | |
+ | |
if (chain->buf->last_buf) | |
{ | |
buffer_fully_loadead = 1; | |
@@ -68,8 +70,12 @@ ngx_int_t ngx_http_modsecurity_body_filter(ngx_http_request_t *r, ngx_chain_t *i | |
for (chain = in; chain != NULL; chain = chain->next) | |
{ | |
+ dd("checking chain %p", chain); | |
+ | |
u_char *data = chain->buf->start; | |
+ dd("data length is %ld", chain->buf->end - data); | |
+ | |
msc_append_response_body(ctx->modsec_transaction, data, chain->buf->end - data); | |
ret = ngx_http_modsecurity_process_intervention(ctx->modsec_transaction, r); | |
if (ret > 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment