Mercurial > hg > nginx
comparison src/http/modules/ngx_http_ssi_filter_module.c @ 7153:32f83fe5747b
SSI: fixed type.
author | hucongcong <hucong.c@foxmail.com> |
---|---|
date | Fri, 27 Oct 2017 00:30:38 +0800 |
parents | 2a288909abc6 |
children | 20f139e9ffa8 |
comparison
equal
deleted
inserted
replaced
7152:3b635e8fd499 | 7153:32f83fe5747b |
---|---|
1628 ngx_str_t *text, ngx_uint_t flags) | 1628 ngx_str_t *text, ngx_uint_t flags) |
1629 { | 1629 { |
1630 u_char ch, *p, **value, *data, *part_data; | 1630 u_char ch, *p, **value, *data, *part_data; |
1631 size_t *size, len, prefix, part_len; | 1631 size_t *size, len, prefix, part_len; |
1632 ngx_str_t var, *val; | 1632 ngx_str_t var, *val; |
1633 ngx_int_t key; | 1633 ngx_uint_t i, n, bracket, quoted, key; |
1634 ngx_uint_t i, n, bracket, quoted; | |
1635 ngx_array_t lengths, values; | 1634 ngx_array_t lengths, values; |
1636 ngx_http_variable_value_t *vv; | 1635 ngx_http_variable_value_t *vv; |
1637 | 1636 |
1638 n = ngx_http_script_variables_count(text); | 1637 n = ngx_http_script_variables_count(text); |
1639 | 1638 |
1881 { | 1880 { |
1882 #if (NGX_PCRE) | 1881 #if (NGX_PCRE) |
1883 int rc, *captures; | 1882 int rc, *captures; |
1884 u_char *p, errstr[NGX_MAX_CONF_ERRSTR]; | 1883 u_char *p, errstr[NGX_MAX_CONF_ERRSTR]; |
1885 size_t size; | 1884 size_t size; |
1886 ngx_int_t key; | |
1887 ngx_str_t *vv, name, value; | 1885 ngx_str_t *vv, name, value; |
1888 ngx_uint_t i, n; | 1886 ngx_uint_t i, n, key; |
1889 ngx_http_ssi_ctx_t *ctx; | 1887 ngx_http_ssi_ctx_t *ctx; |
1890 ngx_http_ssi_var_t *var; | 1888 ngx_http_ssi_var_t *var; |
1891 ngx_regex_compile_t rgc; | 1889 ngx_regex_compile_t rgc; |
1892 | 1890 |
1893 ngx_memzero(&rgc, sizeof(ngx_regex_compile_t)); | 1891 ngx_memzero(&rgc, sizeof(ngx_regex_compile_t)); |
1986 | 1984 |
1987 static ngx_int_t | 1985 static ngx_int_t |
1988 ngx_http_ssi_include(ngx_http_request_t *r, ngx_http_ssi_ctx_t *ctx, | 1986 ngx_http_ssi_include(ngx_http_request_t *r, ngx_http_ssi_ctx_t *ctx, |
1989 ngx_str_t **params) | 1987 ngx_str_t **params) |
1990 { | 1988 { |
1991 ngx_int_t rc, key; | 1989 ngx_int_t rc; |
1992 ngx_str_t *uri, *file, *wait, *set, *stub, args; | 1990 ngx_str_t *uri, *file, *wait, *set, *stub, args; |
1993 ngx_buf_t *b; | 1991 ngx_buf_t *b; |
1994 ngx_uint_t flags, i; | 1992 ngx_uint_t flags, i, key; |
1995 ngx_chain_t *cl, *tl, **ll, *out; | 1993 ngx_chain_t *cl, *tl, **ll, *out; |
1996 ngx_http_request_t *sr; | 1994 ngx_http_request_t *sr; |
1997 ngx_http_ssi_var_t *var; | 1995 ngx_http_ssi_var_t *var; |
1998 ngx_http_ssi_ctx_t *mctx; | 1996 ngx_http_ssi_ctx_t *mctx; |
1999 ngx_http_ssi_block_t *bl; | 1997 ngx_http_ssi_block_t *bl; |
2246 ngx_http_ssi_echo(ngx_http_request_t *r, ngx_http_ssi_ctx_t *ctx, | 2244 ngx_http_ssi_echo(ngx_http_request_t *r, ngx_http_ssi_ctx_t *ctx, |
2247 ngx_str_t **params) | 2245 ngx_str_t **params) |
2248 { | 2246 { |
2249 u_char *p; | 2247 u_char *p; |
2250 uintptr_t len; | 2248 uintptr_t len; |
2251 ngx_int_t key; | |
2252 ngx_buf_t *b; | 2249 ngx_buf_t *b; |
2253 ngx_str_t *var, *value, *enc, text; | 2250 ngx_str_t *var, *value, *enc, text; |
2251 ngx_uint_t key; | |
2254 ngx_chain_t *cl; | 2252 ngx_chain_t *cl; |
2255 ngx_http_variable_value_t *vv; | 2253 ngx_http_variable_value_t *vv; |
2256 | 2254 |
2257 var = params[NGX_HTTP_SSI_ECHO_VAR]; | 2255 var = params[NGX_HTTP_SSI_ECHO_VAR]; |
2258 | 2256 |
2408 | 2406 |
2409 static ngx_int_t | 2407 static ngx_int_t |
2410 ngx_http_ssi_set(ngx_http_request_t *r, ngx_http_ssi_ctx_t *ctx, | 2408 ngx_http_ssi_set(ngx_http_request_t *r, ngx_http_ssi_ctx_t *ctx, |
2411 ngx_str_t **params) | 2409 ngx_str_t **params) |
2412 { | 2410 { |
2413 ngx_int_t key, rc; | 2411 ngx_int_t rc; |
2414 ngx_str_t *name, *value, *vv; | 2412 ngx_str_t *name, *value, *vv; |
2413 ngx_uint_t key; | |
2415 ngx_http_ssi_var_t *var; | 2414 ngx_http_ssi_var_t *var; |
2416 ngx_http_ssi_ctx_t *mctx; | 2415 ngx_http_ssi_ctx_t *mctx; |
2417 | 2416 |
2418 mctx = ngx_http_get_module_ctx(r->main, ngx_http_ssi_filter_module); | 2417 mctx = ngx_http_get_module_ctx(r->main, ngx_http_ssi_filter_module); |
2419 | 2418 |