]> git.kaiwu.me - nginx.git/commitdiff
r1979 merge:
authorIgor Sysoev <igor@sysoev.ru>
Sun, 4 May 2008 10:11:23 +0000 (10:11 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 4 May 2008 10:11:23 +0000 (10:11 +0000)
reset looked at match

src/http/modules/ngx_http_sub_filter_module.c

index 93d1b36ef8e3e9d3a3efddeab7f4d0653f1bd1c7..663a9f5b73a8f386132b377356ec41cdd573fef6 100644 (file)
@@ -590,7 +590,7 @@ ngx_http_sub_parse(ngx_http_request_t *r, ngx_http_sub_ctx_t *ctx)
 
                 ctx->state = sub_start_state;
                 ctx->pos = p + 1;
-                ctx->looked = looked;
+                ctx->looked = 0;
                 ctx->copy_end = copy_end;
 
                 if (ctx->copy_start == NULL && copy_end) {