mirror of
https://github.com/nginx/nginx.git
synced 2026-06-09 00:42:38 -04:00
test zero value in an "if" directive consistently with predicates fixed in r3894
thanks to Maxim Dounin
This commit is contained in:
parent
2bd01a0f01
commit
eecc540da8
1 changed files with 1 additions and 1 deletions
|
|
@ -1395,7 +1395,7 @@ ngx_http_script_if_code(ngx_http_script_engine_t *e)
|
|||
|
||||
e->sp--;
|
||||
|
||||
if (e->sp->len && e->sp->data[0] != '0') {
|
||||
if (e->sp->len && (e->sp->len !=1 || e->sp->data[0] != '0')) {
|
||||
if (code->loc_conf) {
|
||||
e->request->loc_conf = code->loc_conf;
|
||||
ngx_http_update_location_config(e->request);
|
||||
|
|
|
|||
Loading…
Reference in a new issue