mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
allow several values in query string
This commit is contained in:
parent
8d9c63f677
commit
4f677fd203
@ -60,7 +60,7 @@ ngx_module_t ngx_http_flv_module = {
|
|||||||
static ngx_int_t
|
static ngx_int_t
|
||||||
ngx_http_flv_handler(ngx_http_request_t *r)
|
ngx_http_flv_handler(ngx_http_request_t *r)
|
||||||
{
|
{
|
||||||
u_char *p, *last;
|
u_char *p, *n, *last;
|
||||||
off_t start, len;
|
off_t start, len;
|
||||||
size_t root;
|
size_t root;
|
||||||
ngx_int_t rc;
|
ngx_int_t rc;
|
||||||
@ -169,7 +169,13 @@ ngx_http_flv_handler(ngx_http_request_t *r)
|
|||||||
if (p) {
|
if (p) {
|
||||||
p += 6;
|
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) {
|
if (start == NGX_ERROR || start >= len) {
|
||||||
start = 0;
|
start = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user