comparison src/http/ngx_http_core_module.c @ 5148:4bcd35e7a0f0

Pass PCRE_CASELESS to pcre_compile() for caseless matching. Previously, we sometimes passed constant value 1 that happens to match PCRE_CASELESS and thus was harmless.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 29 Mar 2013 08:47:37 +0000
parents c0f7b94e88ba
children d8af1005e886 ddf740b9fdf6
comparison
equal deleted inserted replaced
5147:864030a4ff2a 5148:4bcd35e7a0f0
3254 rc.err.data = errstr; 3254 rc.err.data = errstr;
3255 3255
3256 #if (NGX_HAVE_CASELESS_FILESYSTEM) 3256 #if (NGX_HAVE_CASELESS_FILESYSTEM)
3257 rc.options = NGX_REGEX_CASELESS; 3257 rc.options = NGX_REGEX_CASELESS;
3258 #else 3258 #else
3259 rc.options = caseless; 3259 rc.options = caseless ? NGX_REGEX_CASELESS : 0;
3260 #endif 3260 #endif
3261 3261
3262 clcf->regex = ngx_http_regex_compile(cf, &rc); 3262 clcf->regex = ngx_http_regex_compile(cf, &rc);
3263 if (clcf->regex == NULL) { 3263 if (clcf->regex == NULL) {
3264 return NGX_ERROR; 3264 return NGX_ERROR;