diff src/http/modules/ngx_http_ssi_filter_module.c @ 208:b12b3b1a9426 NGINX_0_3_51

nginx 0.3.51 *) Bugfix: the "<" symbols might disappeared some conditions in the SSI; bug appeared in 0.3.50.
author Igor Sysoev <http://sysoev.ru>
date Fri, 30 Jun 2006 00:00:00 +0400
parents 3866d57d9cfd
children fa32d59d9a15
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
@@ -942,7 +942,9 @@ ngx_http_ssi_parse(ngx_http_request_t *r
         case ssi_sharp_state:
             switch (ch) {
             case '#':
-                ctx->saved = 0;
+                if (p - ctx->pos < 4) {
+                    ctx->saved = 0;
+                }
                 looked = 0;
                 state = ssi_precommand_state;
                 break;