Skip to content

Commit c7b9188

Browse files
committed
Fix typo
fix type modescurity to modsecurity
1 parent 3dbe4da commit c7b9188

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

src/ngx_http_modsecurity_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ ngx_int_t ngx_http_modsecurity_body_filter(ngx_http_request_t *r, ngx_chain_t *i
149149
ngx_int_t ngx_http_modsecurity_header_filter_init(void);
150150
ngx_int_t ngx_http_modsecurity_header_filter(ngx_http_request_t *r);
151151
#if defined(MODSECURITY_SANITY_CHECKS) && (MODSECURITY_SANITY_CHECKS)
152-
int ngx_http_modescurity_store_ctx_header(ngx_http_request_t *r, ngx_str_t *name, ngx_str_t *value);
152+
int ngx_http_modsecurity_store_ctx_header(ngx_http_request_t *r, ngx_str_t *name, ngx_str_t *value);
153153
#endif
154154

155155
/* ngx_http_modsecurity_log.c */

src/ngx_http_modsecurity_header_filter.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ ngx_http_modsecurity_header_out_t ngx_http_modsecurity_headers_out[] = {
101101

102102
#if defined(MODSECURITY_SANITY_CHECKS) && (MODSECURITY_SANITY_CHECKS)
103103
int
104-
ngx_http_modescurity_store_ctx_header(ngx_http_request_t *r, ngx_str_t *name, ngx_str_t *value)
104+
ngx_http_modsecurity_store_ctx_header(ngx_http_request_t *r, ngx_str_t *name, ngx_str_t *value)
105105
{
106106
ngx_http_modsecurity_ctx_t *ctx;
107107
ngx_http_modsecurity_conf_t *mcf;
@@ -167,7 +167,7 @@ ngx_http_modsecurity_resolv_header_server(ngx_http_request_t *r, ngx_str_t name,
167167
}
168168

169169
#if defined(MODSECURITY_SANITY_CHECKS) && (MODSECURITY_SANITY_CHECKS)
170-
ngx_http_modescurity_store_ctx_header(r, &name, &value);
170+
ngx_http_modsecurity_store_ctx_header(r, &name, &value);
171171
#endif
172172

173173
return msc_add_n_response_header(ctx->modsec_transaction,
@@ -196,7 +196,7 @@ ngx_http_modsecurity_resolv_header_date(ngx_http_request_t *r, ngx_str_t name, o
196196
}
197197

198198
#if defined(MODSECURITY_SANITY_CHECKS) && (MODSECURITY_SANITY_CHECKS)
199-
ngx_http_modescurity_store_ctx_header(r, &name, &date);
199+
ngx_http_modsecurity_store_ctx_header(r, &name, &date);
200200
#endif
201201

202202
return msc_add_n_response_header(ctx->modsec_transaction,
@@ -223,7 +223,7 @@ ngx_http_modsecurity_resolv_header_content_length(ngx_http_request_t *r, ngx_str
223223
value.len = strlen(buf);
224224

225225
#if defined(MODSECURITY_SANITY_CHECKS) && (MODSECURITY_SANITY_CHECKS)
226-
ngx_http_modescurity_store_ctx_header(r, &name, &value);
226+
ngx_http_modsecurity_store_ctx_header(r, &name, &value);
227227
#endif
228228
return msc_add_n_response_header(ctx->modsec_transaction,
229229
(const unsigned char *) name.data,
@@ -247,7 +247,7 @@ ngx_http_modsecurity_resolv_header_content_type(ngx_http_request_t *r, ngx_str_t
247247
{
248248

249249
#if defined(MODSECURITY_SANITY_CHECKS) && (MODSECURITY_SANITY_CHECKS)
250-
ngx_http_modescurity_store_ctx_header(r, &name, &r->headers_out.content_type);
250+
ngx_http_modsecurity_store_ctx_header(r, &name, &r->headers_out.content_type);
251251
#endif
252252

253253
return msc_add_n_response_header(ctx->modsec_transaction,
@@ -280,7 +280,7 @@ ngx_http_modsecurity_resolv_header_last_modified(ngx_http_request_t *r, ngx_str_
280280
value.len = (int)(p-buf);
281281

282282
#if defined(MODSECURITY_SANITY_CHECKS) && (MODSECURITY_SANITY_CHECKS)
283-
ngx_http_modescurity_store_ctx_header(r, &name, &value);
283+
ngx_http_modsecurity_store_ctx_header(r, &name, &value);
284284
#endif
285285

286286
return msc_add_n_response_header(ctx->modsec_transaction,
@@ -316,7 +316,7 @@ ngx_http_modsecurity_resolv_header_connection(ngx_http_request_t *r, ngx_str_t n
316316
value.len = strlen((char *)buf);
317317

318318
#if defined(MODSECURITY_SANITY_CHECKS) && (MODSECURITY_SANITY_CHECKS)
319-
ngx_http_modescurity_store_ctx_header(r, &name2, &value);
319+
ngx_http_modsecurity_store_ctx_header(r, &name2, &value);
320320
#endif
321321

322322
msc_add_n_response_header(ctx->modsec_transaction,
@@ -333,7 +333,7 @@ ngx_http_modsecurity_resolv_header_connection(ngx_http_request_t *r, ngx_str_t n
333333
value.len = strlen(connection);
334334

335335
#if defined(MODSECURITY_SANITY_CHECKS) && (MODSECURITY_SANITY_CHECKS)
336-
ngx_http_modescurity_store_ctx_header(r, &name, &value);
336+
ngx_http_modsecurity_store_ctx_header(r, &name, &value);
337337
#endif
338338

339339
return msc_add_n_response_header(ctx->modsec_transaction,
@@ -354,7 +354,7 @@ ngx_http_modsecurity_resolv_header_transfer_encoding(ngx_http_request_t *r, ngx_
354354
ctx = ngx_http_get_module_ctx(r, ngx_http_modsecurity_module);
355355

356356
#if defined(MODSECURITY_SANITY_CHECKS) && (MODSECURITY_SANITY_CHECKS)
357-
ngx_http_modescurity_store_ctx_header(r, &name, &value);
357+
ngx_http_modsecurity_store_ctx_header(r, &name, &value);
358358
#endif
359359

360360
return msc_add_n_response_header(ctx->modsec_transaction,
@@ -381,7 +381,7 @@ ngx_http_modsecurity_resolv_header_vary(ngx_http_request_t *r, ngx_str_t name, o
381381
ctx = ngx_http_get_module_ctx(r, ngx_http_modsecurity_module);
382382

383383
#if defined(MODSECURITY_SANITY_CHECKS) && (MODSECURITY_SANITY_CHECKS)
384-
ngx_http_modescurity_store_ctx_header(r, &name, &value);
384+
ngx_http_modsecurity_store_ctx_header(r, &name, &value);
385385
#endif
386386

387387
return msc_add_n_response_header(ctx->modsec_transaction,
@@ -488,7 +488,7 @@ ngx_http_modsecurity_header_filter(ngx_http_request_t *r)
488488
}
489489

490490
#if defined(MODSECURITY_SANITY_CHECKS) && (MODSECURITY_SANITY_CHECKS)
491-
ngx_http_modescurity_store_ctx_header(r, &data[i].key, &data[i].value);
491+
ngx_http_modsecurity_store_ctx_header(r, &data[i].key, &data[i].value);
492492
#endif
493493

494494
/*

src/ngx_http_modsecurity_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ ngx_http_modsecurity_process_intervention (Transaction *transaction, ngx_http_re
192192
r->headers_out.location->hash = 1;
193193

194194
#if defined(MODSECURITY_SANITY_CHECKS) && (MODSECURITY_SANITY_CHECKS)
195-
ngx_http_modescurity_store_ctx_header(r, &location->key, &location->value);
195+
ngx_http_modsecurity_store_ctx_header(r, &location->key, &location->value);
196196
#endif
197197

198198
return intervention.status;

0 commit comments

Comments
 (0)