mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08:00
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++;
|
||||
}
|
||||
|
||||
if (p < last && *p == '/') {
|
||||
if (p < last - 1 && *p == '/') {
|
||||
if (*(last - 1) != '/') {
|
||||
goto invalid_expression;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user