mirror of
https://github.com/nginx/nginx.git
synced 2025-06-08 02:02:38 +08:00
values starting with '0' were incorrectly assumed to be false
patch by Maxim Dounin
This commit is contained in:
parent
432760ee4d
commit
14fe2dd94a
@ -265,7 +265,7 @@ ngx_http_test_predicates(ngx_http_request_t *r, ngx_array_t *predicates)
|
|||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (val.len && val.data[0] != '0') {
|
if (val.len && (val.len != 1 || val.data[0] != '0')) {
|
||||||
return NGX_DECLINED;
|
return NGX_DECLINED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user