Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ошибка в SSI в 0.3.50
Патч для исправления ошибки в SSI в 0.3.50.
Игорь Сысоев
http://sysoev.ru --- 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;
|