# HG changeset patch # User Igor Sysoev # Date 1227795879 0 # Node ID 81f4bf441eb08b2f9ddee2b4b8f0e0a59b549f3b # Parent 8298d1be0b44856dadab3eb88ea57f158f27ddde r2087 merge: allow several values in query string diff --git a/src/http/modules/ngx_http_flv_module.c b/src/http/modules/ngx_http_flv_module.c --- a/src/http/modules/ngx_http_flv_module.c +++ b/src/http/modules/ngx_http_flv_module.c @@ -60,7 +60,7 @@ ngx_module_t ngx_http_flv_module = { 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 @@ ngx_http_flv_handler(ngx_http_request_t 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;