From dbdeafe6a0efed5154a207bcc0431620bed6ac1d Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 2 May 2007 08:07:37 +0000 Subject: fix segfault or parsing error in '' --- src/http/modules/ngx_http_ssi_filter_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/http/modules/ngx_http_ssi_filter_module.c b/src/http/modules/ngx_http_ssi_filter_module.c index 79e89f18a..f16c34736 100644 --- a/src/http/modules/ngx_http_ssi_filter_module.c +++ b/src/http/modules/ngx_http_ssi_filter_module.c @@ -2376,7 +2376,7 @@ ngx_http_ssi_if(ngx_http_request_t *r, ngx_http_ssi_ctx_t *ctx, p++; } - if (p < last && *p == '/') { + if (p < last - 1 && *p == '/') { if (*(last - 1) != '/') { goto invalid_expression; } -- cgit v1.2.3