changeset 1260:c3541b8973de

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
author Igor Sysoev <igor@sysoev.ru>
date Sun, 17 Jun 2007 17:54:48 +0000
parents 05b5236c2ff5
children 58691d40829f
files src/http/modules/ngx_http_ssi_filter_module.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/modules/ngx_http_ssi_filter_module.c
+++ b/src/http/modules/ngx_http_ssi_filter_module.c
@@ -1020,6 +1020,7 @@ ngx_http_ssi_parse(ngx_http_request_t *r
                 ch = *p;
             }
 
+            ctx->state = state;
             ctx->pos = p;
             ctx->looked = looked;
             ctx->copy_end = p;