comparison src/http/modules/ngx_http_ssi_filter_module.c @ 138:8e6d4d96ec4c NGINX_0_3_16

nginx 0.3.16 *) 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; bug appeared in 0.3.13. Thanks to Rob Mueller. *) Bugfix: segmentation fault may occurred in at SSL shutdown; bug appeared in 0.3.13.
author Igor Sysoev <http://sysoev.ru>
date Fri, 16 Dec 2005 00:00:00 +0300
parents 91372f004adf
children 36af50a5582d
comparison
equal deleted inserted replaced
137:768f51dd150b 138:8e6d4d96ec4c
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) {