diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2008-11-27 14:24:39 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2008-11-27 14:24:39 +0000 |
| commit | 6671983d86a49410f0503c753c4e20d78f4296fc (patch) | |
| tree | 2498184a00b0ed4fb2c39d507fe57258719f0709 | |
| parent | e51f06eb0146192197d15ed5df23bb6cbfbdac29 (diff) | |
| download | nginx-6671983d86a49410f0503c753c4e20d78f4296fc.tar.gz nginx-6671983d86a49410f0503c753c4e20d78f4296fc.tar.bz2 | |
r2087 merge:
allow several values in query string
| -rw-r--r-- | src/http/modules/ngx_http_flv_module.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_flv_module.c b/src/http/modules/ngx_http_flv_module.c index 0e190910c..07bf5beb5 100644 --- 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 *r) 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; |
