nginx-0.3.61-RELEASE import
*) Change: now the "tcp_nodelay" directive is turned on by default.
*) Feature: the "msie_refresh" directive.
*) Feature: the "recursive_error_pages" directive.
*) Bugfix: the "rewrite" directive returned incorrect redirect, if the
redirect had the captured escaped symbols from original URI.
diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c
index 2169c87..3a9e2a8 100644
--- a/src/http/ngx_http_script.c
+++ b/src/http/ngx_http_script.c
@@ -687,9 +687,11 @@
ngx_memzero(&le, sizeof(ngx_http_script_engine_t));
le.ip = code->lengths->elts;
+ le.line = e->line;
le.request = r;
le.captures = e->captures;
le.ncaptures = e->ncaptures;
+ le.quote = code->redirect;
len = 1; /* reserve 1 byte for possible "?" */