Mercurial > hg > nginx
changeset 2086:22d36702c654
allow several values in query string
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 04 Jul 2008 12:59:53 +0000 |
parents | 505af86ac9cb |
children | c8039b26a949 |
files | src/http/modules/ngx_http_flv_module.c |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_flv_module.c Thu Jul 03 19:19:45 2008 +0000 +++ b/src/http/modules/ngx_http_flv_module.c Fri Jul 04 12:59:53 2008 +0000 @@ -60,7 +60,7 @@ static ngx_int_t ngx_http_flv_handler(ngx_http_request_t *r) { - u_char *p, *last; + u_char *p, *n, *last; off_t start, len; size_t root; ngx_int_t rc; @@ -169,7 +169,13 @@ if (p) { p += 6; - start = ngx_atoof(p, r->args.len - (p - r->args.data)); + for (n = p; n < r->args.data + r->args.len; n++) { + if (*n == '&') { + break; + } + } + + start = ngx_atoof(p, n - p); if (start == NGX_ERROR || start >= len) { start = 0;