55
55
56
56
#define tuxb
57
57
58
- /*
58
+ /*
59
59
* If NGX_HTTP_MODSECURITY_PREACCESS_HANDLER_ONLY is defined, this module will
60
60
* not process the body and header filter, instead it will only process the
61
61
* preaccess request handler. This is useful to debug the module and check if
@@ -1230,7 +1230,7 @@ ngx_http_modsecurity_header_filter(ngx_http_request_t *r) {
1230
1230
ctx = ngx_http_get_module_ctx (r , ngx_http_modsecurity );
1231
1231
1232
1232
/* already processed, checking redirect action. */
1233
- if (ctx && ctx -> complete
1233
+ if (ctx && ctx -> complete
1234
1234
&& r -> err_status >= NGX_HTTP_MOVED_PERMANENTLY
1235
1235
&& r -> err_status < 308 ) {
1236
1236
@@ -1296,12 +1296,12 @@ ngx_http_modsecurity_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
1296
1296
if (size ) {
1297
1297
char * data = apr_pmemdup (bb -> p , buf -> pos , size );
1298
1298
if (data == NULL ) {
1299
- return ngx_http_filter_finalize_request (r ,
1299
+ return ngx_http_filter_finalize_request (r ,
1300
1300
& ngx_http_modsecurity , NGX_HTTP_INTERNAL_SERVER_ERROR );
1301
1301
}
1302
1302
e = apr_bucket_pool_create (data , size , bb -> p , bb -> bucket_alloc );
1303
1303
if (e == NULL ) {
1304
- return ngx_http_filter_finalize_request (r ,
1304
+ return ngx_http_filter_finalize_request (r ,
1305
1305
& ngx_http_modsecurity , NGX_HTTP_INTERNAL_SERVER_ERROR );
1306
1306
}
1307
1307
APR_BRIGADE_INSERT_TAIL (bb , e );
@@ -1312,7 +1312,7 @@ ngx_http_modsecurity_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
1312
1312
buf -> last_buf = 0 ;
1313
1313
e = apr_bucket_eos_create (bb -> bucket_alloc );
1314
1314
if (e == NULL ) {
1315
- return ngx_http_filter_finalize_request (r ,
1315
+ return ngx_http_filter_finalize_request (r ,
1316
1316
& ngx_http_modsecurity , NGX_HTTP_INTERNAL_SERVER_ERROR );
1317
1317
}
1318
1318
APR_BRIGADE_INSERT_TAIL (bb , e );
@@ -1333,7 +1333,7 @@ ngx_http_modsecurity_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
1333
1333
if (ngx_http_modsecurity_load_headers_in (r ) != NGX_OK
1334
1334
|| ngx_http_modsecurity_load_headers_out (r ) != NGX_OK ) {
1335
1335
1336
- return ngx_http_filter_finalize_request (r ,
1336
+ return ngx_http_filter_finalize_request (r ,
1337
1337
& ngx_http_modsecurity , NGX_HTTP_INTERNAL_SERVER_ERROR );
1338
1338
}
1339
1339
@@ -1350,7 +1350,7 @@ ngx_http_modsecurity_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
1350
1350
ngx_log_debug (NGX_LOG_DEBUG_HTTP , r -> connection -> log , 0 ,
1351
1351
"ModSec: Problems moving brigade to chain" );
1352
1352
1353
- return ngx_http_filter_finalize_request (r ,
1353
+ return ngx_http_filter_finalize_request (r ,
1354
1354
& ngx_http_modsecurity , NGX_HTTP_INTERNAL_SERVER_ERROR );
1355
1355
}
1356
1356
@@ -1365,7 +1365,7 @@ ngx_http_modsecurity_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
1365
1365
"ModSecurity: save headers out done _inside_" );
1366
1366
1367
1367
1368
- return ngx_http_filter_finalize_request (r ,
1368
+ return ngx_http_filter_finalize_request (r ,
1369
1369
& ngx_http_modsecurity , NGX_HTTP_INTERNAL_SERVER_ERROR );
1370
1370
}
1371
1371
0 commit comments