# HG changeset patch # User Ruslan Ermilov # Date 1364546857 0 # Node ID 4bcd35e7a0f0ab7e5e65bda9756cb28b61e252dd # Parent 864030a4ff2a35602095b5dfd7f2a2fee4b7fa88 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. diff -r 864030a4ff2a -r 4bcd35e7a0f0 src/http/ngx_http_core_module.c --- a/src/http/ngx_http_core_module.c Thu Mar 28 08:47:25 2013 +0000 +++ b/src/http/ngx_http_core_module.c Fri Mar 29 08:47:37 2013 +0000 @@ -3256,7 +3256,7 @@ #if (NGX_HAVE_CASELESS_FILESYSTEM) rc.options = NGX_REGEX_CASELESS; #else - rc.options = caseless; + rc.options = caseless ? NGX_REGEX_CASELESS : 0; #endif clcf->regex = ngx_http_regex_compile(cf, &rc);