commit | 14fe2dd94a1c0605f73e7a909738aa247ae21fa6 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Fri Apr 15 12:24:18 2011 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Fri Apr 15 12:24:18 2011 +0000 |
tree | 24863db39da8deca07fc33716b56e1ba77bbece4 | |
parent | 432760ee4d56dd6998baa66201e2c72c1dbc8038 [diff] [blame] |
values starting with '0' were incorrectly assumed to be false patch by Maxim Dounin
diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c index 8b861ce..7c8de14 100644 --- a/src/http/ngx_http_script.c +++ b/src/http/ngx_http_script.c
@@ -265,7 +265,7 @@ return NGX_ERROR; } - if (val.len && val.data[0] != '0') { + if (val.len && (val.len != 1 || val.data[0] != '0')) { return NGX_DECLINED; } }