From: Igor Sysoev Date: Mon, 30 May 2011 14:24:17 +0000 (+0000) Subject: revert r3875 since now map uses case sensetive regexes by default X-Git-Tag: release-1.0.4~5 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=5343bf3221c66aaef315a466931c7b2c2ac5b425;p=nginx.git revert r3875 since now map uses case sensetive regexes by default --- 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;