diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-11-16 19:10:45 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-11-16 19:10:45 +0000 |
commit | d86a0bfed491fbaf75d2268856aa999621b7cdf0 (patch) | |
tree | 2943e2a23b636c8853327375a2ceee337fc5954d /src/http/ngx_http_variables.c | |
parent | 93da5659625fa3c04d30cf091bc5d356001d29e1 (diff) | |
download | nginx-d86a0bfed491fbaf75d2268856aa999621b7cdf0.tar.gz nginx-d86a0bfed491fbaf75d2268856aa999621b7cdf0.zip |
fix captures in "rewrite", the bug had been introduced in r3326
Diffstat (limited to 'src/http/ngx_http_variables.c')
-rw-r--r-- | src/http/ngx_http_variables.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c index 633b31084..0289a64ac 100644 --- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c @@ -1810,7 +1810,7 @@ ngx_http_regex_exec(ngx_http_request_t *r, ngx_http_regex_t *re, ngx_str_t *s) #endif } - r->ncaptures = len; + r->ncaptures = rc * 2; r->captures_data = s->data; return NGX_OK; |