comparison src/http/modules/ngx_http_ssi_filter_module.c @ 599:869b6444d234 release-0.3.21

nginx-0.3.21-RELEASE import *) Feature: the ngx_http_perl_module. *) Change: the "valid_referers" directive allows the referreres without URI part.
author Igor Sysoev <igor@sysoev.ru>
date Mon, 16 Jan 2006 14:56:53 +0000
parents 9262f520ce21
children 608cf78b24ef
comparison
equal deleted inserted replaced
598:bfa12c280dec 599:869b6444d234
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