Welcome! Log In Create A New Profile

Advanced

[PATCH] Named captures: fix usage of more than 2 in one regex

Maxim Dounin
January 06, 2010 08:42PM
# HG changeset patch
# User Maxim Dounin <mdounin@mdounin.ru>
# Date 1262827023 -10800
# Node ID 63f82eb237a27478057fec345d8ef22e23ac7533
# Parent a7a3057e1539700d919701aff213b584380f6bfc
Named captures: fix usage of more than 2 in one regex.

Due to typo in code offsets in name-to-number map was correct only for first
and second names.

diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c
--- a/src/http/ngx_http_variables.c
+++ b/src/http/ngx_http_variables.c
@@ -1743,7 +1743,7 @@ ngx_http_regex_compile(ngx_conf_t *cf, n

v->get_handler = ngx_http_variable_not_found;

- p += i + size;
+ p += size;
}

return re;

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

[PATCH] Named captures: fix usage of more than 2 in one regex

Maxim Dounin 3236 January 06, 2010 08:42PM

[PATCH] directives listing Attachments

Peter Leonov 1809 January 10, 2010 12:48PM



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

Online Users

Guests: 130
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready