Skip to content

Commit f76aaae

Browse files
airweenzimmerle
authored andcommitted
Fix make test
1 parent 7a8c78f commit f76aaae

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/msc_filters.c

+3
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ apr_status_t input_filter(ap_filter_t *f, apr_bucket_brigade *pbbOut,
6262
return send_error_bucket(msr, f, it);
6363
}
6464

65+
// FIXME: Now we should have the body. Is this sane?
66+
msc_process_request_body(msr->t);
67+
6568
pbktOut = apr_bucket_heap_create(data, len, 0, c->bucket_alloc);
6669
APR_BRIGADE_INSERT_TAIL(pbbOut, pbktOut);
6770
apr_bucket_delete(pbktIn);

t/conf/extra.conf.in

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ modsecurity_rules 'SecDebugLogLevel 9'
2020
</Directory>
2121

2222
<Directory "@ServerRoot@/htdocs/block-evil-2">
23+
modsecurity_rules 'SecRequestBodyAccess On'
2324
modsecurity_rules 'SecRule ARGS "evil" "phase:2,id:112,log,status:403,block,deny"'
2425
</Directory>
2526

@@ -43,6 +44,7 @@ modsecurity_rules 'SecDebugLogLevel 9'
4344
</Location>
4445

4546
<Location "/block-evil-2-loc">
47+
modsecurity_rules 'SecRequestBodyAccess On'
4648
modsecurity_rules 'SecRule ARGS "evil" "phase:2,id:112,log,status:402,block,deny"'
4749
</Location>
4850

0 commit comments

Comments
 (0)