diff options
author | Igor Sysoev <igor@sysoev.ru> | 2011-05-03 09:52:27 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2011-05-03 09:52:27 +0000 |
commit | eecc540da802ead2c784a1c5e655b285cc248b72 (patch) | |
tree | d36e4db231bc913cfb13f857fa9f8b32e70094e7 /src/http/ngx_http_script.c | |
parent | 2bd01a0f0196d7915e8bf54f4966ad240593564b (diff) | |
download | nginx-eecc540da802ead2c784a1c5e655b285cc248b72.tar.gz nginx-eecc540da802ead2c784a1c5e655b285cc248b72.zip |
test zero value in an "if" directive consistently with predicates fixed in r3894
thanks to Maxim Dounin
Diffstat (limited to 'src/http/ngx_http_script.c')
-rw-r--r-- | src/http/ngx_http_script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c index 7c8de1445..a703f0837 100644 --- 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_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); |