# HG changeset patch # User Igor Sysoev # Date 1209895883 0 # Node ID 4b54072c0848d2119202cd48508fbfbc6d04e881 # Parent f3205008c55abaad5792920b1d3d6b04fe57750a r1979 merge: reset looked at match diff --git a/src/http/modules/ngx_http_sub_filter_module.c b/src/http/modules/ngx_http_sub_filter_module.c --- a/src/http/modules/ngx_http_sub_filter_module.c +++ b/src/http/modules/ngx_http_sub_filter_module.c @@ -590,7 +590,7 @@ ngx_http_sub_parse(ngx_http_request_t *r 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) {