ошибка в SSI в 0.3.50

Igor Sysoev is at rambler-co.ru
Fri Jun 30 01:11:25 MSD 2006


Патч для исправления ошибки в SSI в 0.3.50.


Игорь Сысоев
http://sysoev.ru
-------------- next part --------------
--- src/http/modules/ngx_http_ssi_filter_module.c	Wed Jun 28 15:50:22 2006
+++ src/http/modules/ngx_http_ssi_filter_module.c	Fri Jun 30 00:58:07 2006
@@ -942,7 +942,9 @@
         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;


More information about the nginx-ru mailing list