mirror of https://github.com/nginx/nginx
fix segfault or parsing error in '<!--# if expr="$var = /" -->'
This commit is contained in:
parent
9c710c0569
commit
dbdeafe6a0
|
|
@ -2376,7 +2376,7 @@ ngx_http_ssi_if(ngx_http_request_t *r, ngx_http_ssi_ctx_t *ctx,
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p < last && *p == '/') {
|
if (p < last - 1 && *p == '/') {
|
||||||
if (*(last - 1) != '/') {
|
if (*(last - 1) != '/') {
|
||||||
goto invalid_expression;
|
goto invalid_expression;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue