Mercurial > hg > nginx
changeset 3904:77f667dd0504
test zero value in an "if" directive consistently with predicates fixed in r3894
thanks to Maxim Dounin
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 03 May 2011 09:52:27 +0000 |
parents | 5cecc8377613 |
children | f8f89eb4e0c2 |
files | src/http/ngx_http_script.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_script.c +++ b/src/http/ngx_http_script.c @@ -1395,7 +1395,7 @@ ngx_http_script_if_code(ngx_http_script_ 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);