From 266089a2817e12b00be0d22adbda972f08ce97fd Mon Sep 17 00:00:00 2001 From: "Kirill A. Korinskiy" Date: Thu, 17 Jun 2010 23:59:20 +0400 Subject: [PATCH] Fix length of named location --- src/http/ngx_http_script.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c index deca57a..91043f1 100644 --- a/src/http/ngx_http_script.c +++ b/src/http/ngx_http_script.c @@ -992,6 +992,8 @@ ngx_http_script_regex_end_code(ngx_http_script_engine_t *e) "http script regex end"); if (code->named_redirect) { + /* fix length */ + e->buf.len = e->pos - e->buf.data; ngx_http_named_location(r, &e->buf); r->err_status = 0; e->status = NGX_DONE; -- 2.11.4.GIT