Mercurial > hg > nginx
changeset 2349:81f4bf441eb0 stable-0.6
r2087 merge:
allow several values in query string
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 27 Nov 2008 14:24:39 +0000 |
parents | 8298d1be0b44 |
children | ee07289b697a |
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 Nov 27 14:22:34 2008 +0000 +++ b/src/http/modules/ngx_http_flv_module.c Thu Nov 27 14:24:39 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; @@ -168,7 +168,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;