[nginx] svn commit: r5149 - trunk/src/http

ru at nginx.com ru at nginx.com
Fri Mar 29 08:47:38 UTC 2013


Author: ru
Date: 2013-03-29 08:47:37 +0000 (Fri, 29 Mar 2013)
New Revision: 5149
URL: http://trac.nginx.org/nginx/changeset/5149/nginx

Log:
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.


Modified:
   trunk/src/http/ngx_http_core_module.c

Modified: trunk/src/http/ngx_http_core_module.c
===================================================================
--- trunk/src/http/ngx_http_core_module.c	2013-03-28 08:47:25 UTC (rev 5148)
+++ trunk/src/http/ngx_http_core_module.c	2013-03-29 08:47:37 UTC (rev 5149)
@@ -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);



More information about the nginx-devel mailing list