mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
fix segfault or parsing error in '<!--# if expr="$var = /" -->'
This commit is contained in:
parent
9c710c0569
commit
dbdeafe6a0
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue