diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-05-02 12:07:37 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-05-02 12:07:37 +0400 |
commit | dbdeafe6a0efed5154a207bcc0431620bed6ac1d (patch) | |
tree | 33e9843166376c7fc9571235699e0df77dd95845 | |
parent | 9c710c0569d1f82cd7b754446bd4bc8856f45867 (diff) |
fix segfault or parsing error in '<!--# if expr="$var = /" -->'
-rw-r--r-- | src/http/modules/ngx_http_ssi_filter_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |