Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-07-04 16:59:53 +0400
committerIgor Sysoev <igor@sysoev.ru>2008-07-04 16:59:53 +0400
commit4f677fd20377230cf959cddb39ceb4d566ce4866 (patch)
tree0af56eb55c587efd58c50aa2acd5ae9b7bc28a08 /src
parent8d9c63f677b57d799f0105444617d9acab15dad2 (diff)
allow several values in query string
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_flv_module.c10
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 cc2ec4da1..a8239f16e 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;
@@ -169,7 +169,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;