File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1
1
v1.0.x - YYYY-MMM-DD (To be released)
2
2
-------------------------------------
3
3
4
+ - Fix nginx not clearing body cache (caused by incomplete fix for #187)
5
+ [Issue #216 - @krewi1, @martinhsv]
4
6
- Fix config setting not respected: client_body_in_file_only on
5
7
[Issue #187 - @martinhsv]
6
8
- Fix audit_log not generated for disruptive actions
Original file line number Diff line number Diff line change @@ -104,6 +104,13 @@ ngx_http_modsecurity_pre_access_handler(ngx_http_request_t *r)
104
104
*/
105
105
r -> request_body_in_single_buf = 1 ;
106
106
r -> request_body_in_persistent_file = 1 ;
107
+ if (!r -> request_body_in_file_only ) {
108
+ // If the above condition fails, then the flag below will have been
109
+ // set correctly elsewhere. We need to set the flag here for other
110
+ // conditions (client_body_in_file_only not used but
111
+ // client_body_buffer_size is)
112
+ r -> request_body_in_clean_file = 1 ;
113
+ }
107
114
108
115
rc = ngx_http_read_client_request_body (r ,
109
116
ngx_http_modsecurity_request_read );
You can’t perform that action at this time.
0 commit comments