mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 19:41:35 +00:00
values starting with '0' were incorrectly assumed to be false
patch by Maxim Dounin
This commit is contained in:
parent
432760ee4d
commit
14fe2dd94a
1 changed files with 1 additions and 1 deletions
|
|
@ -265,7 +265,7 @@ ngx_http_test_predicates(ngx_http_request_t *r, ngx_array_t *predicates)
|
|||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
if (val.len && val.data[0] != '0') {
|
||||
if (val.len && (val.len != 1 || val.data[0] != '0')) {
|
||||
return NGX_DECLINED;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue