Welcome! Log In Create A New Profile

Advanced

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

Anonymous User
March 29, 2013 04:48AM
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);

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

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

Anonymous User 729 March 29, 2013 04:48AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 112
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready