Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_ssi_filter_module.c @ 589:d4e858a5751a release-0.3.16
nginx-0.3.16-RELEASE import
*) Feature: the ngx_http_map_module.
*) Feature: the "types_hash_max_size" and "types_hash_bucket_size"
directives.
*) Feature: the "ssi_value_length" directive.
*) Feature: the "worker_rlimit_core" directive.
*) Workaround: the connection number in logs was always 1 if nginx was
built by the icc 8.1 or 9.0 compilers with optimization for
Pentium 4.
*) Bugfix: the "config timefmt" SSI command set incorrect time format.
*) Bugfix: nginx did not close connection to IMAP/POP3 backend for the
SSL connections; the bug had appeared in 0.3.13.
Thanks to Rob Mueller.
*) Bugfix: segmentation fault may occurred in at SSL shutdown; the bug
had appeared in 0.3.13.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 16 Dec 2005 15:07:08 +0000 |
parents | 4e296b7d25bf |
children | 9262f520ce21 |
comparison
equal
deleted
inserted
replaced
588:0a2c30f516e6 | 589:d4e858a5751a |
---|---|
184 ngx_conf_set_size_slot, | 184 ngx_conf_set_size_slot, |
185 NGX_HTTP_LOC_CONF_OFFSET, | 185 NGX_HTTP_LOC_CONF_OFFSET, |
186 offsetof(ngx_http_ssi_conf_t, min_file_chunk), | 186 offsetof(ngx_http_ssi_conf_t, min_file_chunk), |
187 NULL }, | 187 NULL }, |
188 | 188 |
189 { ngx_string("ssi_value_length"), | |
190 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG, | |
191 ngx_conf_set_size_slot, | |
192 NGX_HTTP_LOC_CONF_OFFSET, | |
193 offsetof(ngx_http_ssi_conf_t, value_len), | |
194 NULL }, | |
195 | |
189 { ngx_string("ssi_types"), | 196 { ngx_string("ssi_types"), |
190 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_1MORE, | 197 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_1MORE, |
191 ngx_http_ssi_types, | 198 ngx_http_ssi_types, |
192 NGX_HTTP_LOC_CONF_OFFSET, | 199 NGX_HTTP_LOC_CONF_OFFSET, |
193 0, | 200 0, |
1726 ngx_str_t *value; | 1733 ngx_str_t *value; |
1727 | 1734 |
1728 value = params[NGX_HTTP_SSI_CONFIG_TIMEFMT]; | 1735 value = params[NGX_HTTP_SSI_CONFIG_TIMEFMT]; |
1729 | 1736 |
1730 if (value) { | 1737 if (value) { |
1731 ctx->timefmt = *value; | 1738 ctx->timefmt.len = value->len; |
1739 ctx->timefmt.data = ngx_palloc(r->pool, value->len + 1); | |
1740 if (ctx->timefmt.data == NULL) { | |
1741 return NGX_HTTP_SSI_ERROR; | |
1742 } | |
1743 | |
1744 ngx_cpystrn(ctx->timefmt.data, value->data, value->len + 1); | |
1732 } | 1745 } |
1733 | 1746 |
1734 value = params[NGX_HTTP_SSI_CONFIG_ERRMSG]; | 1747 value = params[NGX_HTTP_SSI_CONFIG_ERRMSG]; |
1735 | 1748 |
1736 if (value) { | 1749 if (value) { |