Mercurial > hg > nginx-mail
comparison src/http/modules/ngx_http_ssi_filter_module.c @ 148:ea622d8acb38 NGINX_0_3_21
nginx 0.3.21
*) Feature: the ngx_http_perl_module.
*) Change: the "valid_referers" directive allows the referreres without
URI part.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 16 Jan 2006 00:00:00 +0300 |
parents | 36af50a5582d |
children | 2d15b82126ed |
comparison
equal
deleted
inserted
replaced
147:d1b9f90d95f6 | 148:ea622d8acb38 |
---|---|
348 ngx_http_ssi_ctx_t *ctx; | 348 ngx_http_ssi_ctx_t *ctx; |
349 ngx_http_ssi_param_t *prm; | 349 ngx_http_ssi_param_t *prm; |
350 ngx_http_ssi_command_t *cmd; | 350 ngx_http_ssi_command_t *cmd; |
351 ngx_http_ssi_loc_conf_t *slcf; | 351 ngx_http_ssi_loc_conf_t *slcf; |
352 ngx_http_ssi_main_conf_t *smcf; | 352 ngx_http_ssi_main_conf_t *smcf; |
353 ngx_str_t *params[NGX_HTTP_SSI_MAX_PARAMS]; | 353 ngx_str_t *params[NGX_HTTP_SSI_MAX_PARAMS + 1]; |
354 | 354 |
355 ctx = ngx_http_get_module_ctx(r, ngx_http_ssi_filter_module); | 355 ctx = ngx_http_get_module_ctx(r, ngx_http_ssi_filter_module); |
356 | 356 |
357 if (ctx == NULL || (in == NULL && ctx->in == NULL && ctx->busy == NULL)) { | 357 if (ctx == NULL || (in == NULL && ctx->in == NULL && ctx->busy == NULL)) { |
358 return ngx_http_next_body_filter(r, in); | 358 return ngx_http_next_body_filter(r, in); |
532 &ctx->command); | 532 &ctx->command); |
533 goto ssi_error; | 533 goto ssi_error; |
534 } | 534 } |
535 | 535 |
536 ngx_memzero(params, | 536 ngx_memzero(params, |
537 NGX_HTTP_SSI_MAX_PARAMS * sizeof(ngx_str_t *)); | 537 (NGX_HTTP_SSI_MAX_PARAMS + 1) * sizeof(ngx_str_t *)); |
538 | 538 |
539 param = ctx->params.elts; | 539 param = ctx->params.elts; |
540 | 540 |
541 for (i = 0; i < ctx->params.nelts; i++) { | 541 for (i = 0; i < ctx->params.nelts; i++) { |
542 | 542 |