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	Mon Nov 16 16:00:52 2009 +0000
+++ b/src/http/ngx_http_variables.c	Mon Nov 16 19:10:45 2009 +0000
@@ -1810,7 +1810,7 @@
 #endif
     }
 
-    r->ncaptures = len;
+    r->ncaptures = rc * 2;
     r->captures_data = s->data;
 
     return NGX_OK;