]> git.kaiwu.me - nginx.git/commitdiff
if "<!--" was on edge of buf, then ssi_sharp_state was saved in ctx->saved
authorIgor Sysoev <igor@sysoev.ru>
Sun, 17 Jun 2007 17:54:48 +0000 (17:54 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 17 Jun 2007 17:54:48 +0000 (17:54 +0000)
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;