Mercurial > hg > nginx
comparison src/http/ngx_http_script.c @ 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 | 5581586480e9 |
children | 1a94a56a4e5d |
comparison
equal
deleted
inserted
replaced
3903:5cecc8377613 | 3904:77f667dd0504 |
---|---|
1393 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, e->request->connection->log, 0, | 1393 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, e->request->connection->log, 0, |
1394 "http script if"); | 1394 "http script if"); |
1395 | 1395 |
1396 e->sp--; | 1396 e->sp--; |
1397 | 1397 |
1398 if (e->sp->len && e->sp->data[0] != '0') { | 1398 if (e->sp->len && (e->sp->len !=1 || e->sp->data[0] != '0')) { |
1399 if (code->loc_conf) { | 1399 if (code->loc_conf) { |
1400 e->request->loc_conf = code->loc_conf; | 1400 e->request->loc_conf = code->loc_conf; |
1401 ngx_http_update_location_config(e->request); | 1401 ngx_http_update_location_config(e->request); |
1402 } | 1402 } |
1403 | 1403 |