diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2011-05-30 14:24:17 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2011-05-30 14:24:17 +0000 |
| commit | 5343bf3221c66aaef315a466931c7b2c2ac5b425 (patch) | |
| tree | 5399f6fb39f2a0cb2fba9f4a6a4dabaedb628cd6 /src | |
| parent | 53d05b969bc68e259fcfda0909932295a8d92ad6 (diff) | |
| download | nginx-5343bf3221c66aaef315a466931c7b2c2ac5b425.tar.gz nginx-5343bf3221c66aaef315a466931c7b2c2ac5b425.tar.bz2 | |
revert r3875 since now map uses case sensetive regexes by default
Diffstat (limited to 'src')
| -rw-r--r-- | src/http/modules/ngx_http_map_module.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_map_module.c b/src/http/modules/ngx_http_map_module.c index 8ca3fa314..6b724b304 100644 --- a/src/http/modules/ngx_http_map_module.c +++ b/src/http/modules/ngx_http_map_module.c @@ -526,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; |
