5555
5656#define tuxb
5757
58- /*
58+ /*
5959 * If NGX_HTTP_MODSECURITY_PREACCESS_HANDLER_ONLY is defined, this module will
6060 * not process the body and header filter, instead it will only process the
6161 * 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) {
12301230 ctx = ngx_http_get_module_ctx (r , ngx_http_modsecurity );
12311231
12321232 /* already processed, checking redirect action. */
1233- if (ctx && ctx -> complete
1233+ if (ctx && ctx -> complete
12341234 && r -> err_status >= NGX_HTTP_MOVED_PERMANENTLY
12351235 && r -> err_status < 308 ) {
12361236
@@ -1296,12 +1296,12 @@ ngx_http_modsecurity_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
12961296 if (size ) {
12971297 char * data = apr_pmemdup (bb -> p , buf -> pos , size );
12981298 if (data == NULL ) {
1299- return ngx_http_filter_finalize_request (r ,
1299+ return ngx_http_filter_finalize_request (r ,
13001300 & ngx_http_modsecurity , NGX_HTTP_INTERNAL_SERVER_ERROR );
13011301 }
13021302 e = apr_bucket_pool_create (data , size , bb -> p , bb -> bucket_alloc );
13031303 if (e == NULL ) {
1304- return ngx_http_filter_finalize_request (r ,
1304+ return ngx_http_filter_finalize_request (r ,
13051305 & ngx_http_modsecurity , NGX_HTTP_INTERNAL_SERVER_ERROR );
13061306 }
13071307 APR_BRIGADE_INSERT_TAIL (bb , e );
@@ -1312,7 +1312,7 @@ ngx_http_modsecurity_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
13121312 buf -> last_buf = 0 ;
13131313 e = apr_bucket_eos_create (bb -> bucket_alloc );
13141314 if (e == NULL ) {
1315- return ngx_http_filter_finalize_request (r ,
1315+ return ngx_http_filter_finalize_request (r ,
13161316 & ngx_http_modsecurity , NGX_HTTP_INTERNAL_SERVER_ERROR );
13171317 }
13181318 APR_BRIGADE_INSERT_TAIL (bb , e );
@@ -1333,7 +1333,7 @@ ngx_http_modsecurity_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
13331333 if (ngx_http_modsecurity_load_headers_in (r ) != NGX_OK
13341334 || ngx_http_modsecurity_load_headers_out (r ) != NGX_OK ) {
13351335
1336- return ngx_http_filter_finalize_request (r ,
1336+ return ngx_http_filter_finalize_request (r ,
13371337 & ngx_http_modsecurity , NGX_HTTP_INTERNAL_SERVER_ERROR );
13381338 }
13391339
@@ -1350,7 +1350,7 @@ ngx_http_modsecurity_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
13501350 ngx_log_debug (NGX_LOG_DEBUG_HTTP , r -> connection -> log , 0 ,
13511351 "ModSec: Problems moving brigade to chain" );
13521352
1353- return ngx_http_filter_finalize_request (r ,
1353+ return ngx_http_filter_finalize_request (r ,
13541354 & ngx_http_modsecurity , NGX_HTTP_INTERNAL_SERVER_ERROR );
13551355 }
13561356
@@ -1365,7 +1365,7 @@ ngx_http_modsecurity_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
13651365 "ModSecurity: save headers out done _inside_" );
13661366
13671367
1368- return ngx_http_filter_finalize_request (r ,
1368+ return ngx_http_filter_finalize_request (r ,
13691369 & ngx_http_modsecurity , NGX_HTTP_INTERNAL_SERVER_ERROR );
13701370 }
13711371
0 commit comments