diff src/http/ngx_http_variables.c @ 3344:1aed55182ea2

fix captures in "rewrite", the bug had been introduced in r3326
author Igor Sysoev <igor@sysoev.ru>
date Mon, 16 Nov 2009 19:10:45 +0000
parents 42c16d8bddbe
children d8228f0b5113
line wrap: on
line diff
--- 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 *
 #endif
     }
 
-    r->ncaptures = len;
+    r->ncaptures = rc * 2;
     r->captures_data = s->data;
 
     return NGX_OK;