diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2011-06-01 09:30:12 +0000 |
|---|---|---|
| committer | Jonathan Kolb <jon@b0g.us> | 2011-06-01 09:30:12 +0000 |
| commit | 8852bb49fe4ee5b4d0f27c28d4901f4b6cd5e8c3 (patch) | |
| tree | 29b465601b29df8385f984684ee141b3832e3962 /src/http/modules | |
| parent | 05db4154017269f45cc8742ca187855e1331b08d (diff) | |
| download | nginx-8852bb49fe4ee5b4d0f27c28d4901f4b6cd5e8c3.tar.gz | |
Changes with nginx 1.0.4 01 Jun 2011v1.0.4
*) Change: now regular expressions case sensitivity in the "map"
directive is given by prefixes "~" or "~*".
*) Feature: now shared zones and caches use POSIX semaphores on Linux.
Thanks to Denis F. Latypoff.
*) Bugfix: "stalled" cache updating" alert.
*) Bugfix: nginx could not be built --without-http_auth_basic_module;
the bug had appeared in 1.0.3.
Diffstat (limited to 'src/http/modules')
| -rw-r--r-- | src/http/modules/ngx_http_map_module.c | 11 | ||||
| -rw-r--r-- | src/http/modules/perl/nginx.pm | 2 |
2 files changed, 8 insertions, 5 deletions
diff --git a/src/http/modules/ngx_http_map_module.c b/src/http/modules/ngx_http_map_module.c index 5aa23eba3..6b724b304 100644 --- a/src/http/modules/ngx_http_map_module.c +++ b/src/http/modules/ngx_http_map_module.c @@ -111,7 +111,6 @@ ngx_http_map_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v, size_t len; ngx_str_t val; - ngx_uint_t key; ngx_http_variable_value_t *value; ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, @@ -127,9 +126,7 @@ ngx_http_map_variable(ngx_http_request_t *r, ngx_http_variable_value_t *v, len--; } - key = ngx_hash_strlow(val.data, val.data, len); - - value = ngx_http_map_find(r, &map->map, key, val.data, len, &val); + value = ngx_http_map_find(r, &map->map, &val); if (value == NULL) { value = map->default_value; @@ -529,6 +526,12 @@ found: ngx_memzero(&rc, sizeof(ngx_regex_compile_t)); + if (value[0].data[0] == '*') { + value[0].len--; + value[0].data++; + rc.options = NGX_REGEX_CASELESS; + } + rc.pattern = value[0]; rc.err.len = NGX_MAX_CONF_ERRSTR; rc.err.data = errstr; diff --git a/src/http/modules/perl/nginx.pm b/src/http/modules/perl/nginx.pm index fa2fed8c6..2c88d9afd 100644 --- a/src/http/modules/perl/nginx.pm +++ b/src/http/modules/perl/nginx.pm @@ -48,7 +48,7 @@ our @EXPORT = qw( HTTP_INSUFFICIENT_STORAGE ); -our $VERSION = '1.0.3'; +our $VERSION = '1.0.4'; require XSLoader; XSLoader::load('nginx', $VERSION); |
