]> git.kaiwu.me - nginx.git/commitdiff
r1261 merge:
authorIgor Sysoev <igor@sysoev.ru>
Sun, 17 Jun 2007 18:52:06 +0000 (18:52 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 17 Jun 2007 18:52:06 +0000 (18:52 +0000)
if "<!--" was on edge of buf, then ssi_sharp_state was saved in ctx->saved
and if it was not reset, then any '#' was treated as SSI command start

src/http/modules/ngx_http_ssi_filter_module.c

index f16c34736e4f337fc9d9de06630437a6a41cf510..5343ca0be60c93558029b0b0f63dbcf967e96ce6 100644 (file)
@@ -1020,6 +1020,7 @@ ngx_http_ssi_parse(ngx_http_request_t *r, ngx_http_ssi_ctx_t *ctx)
                 ch = *p;
             }
 
+            ctx->state = state;
             ctx->pos = p;
             ctx->looked = looked;
             ctx->copy_end = p;