commit | dbdeafe6a0efed5154a207bcc0431620bed6ac1d | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Wed May 02 08:07:37 2007 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Wed May 02 08:07:37 2007 +0000 |
tree | 33e9843166376c7fc9571235699e0df77dd95845 | |
parent | 9c710c0569d1f82cd7b754446bd4bc8856f45867 [diff] |
fix segfault or parsing error in '<!--# if expr="$var = /" -->'
diff --git a/src/http/modules/ngx_http_ssi_filter_module.c b/src/http/modules/ngx_http_ssi_filter_module.c index 79e89f1..f16c347 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 @@ p++; } - if (p < last && *p == '/') { + if (p < last - 1 && *p == '/') { if (*(last - 1) != '/') { goto invalid_expression; }