mirror of
https://github.com/nginx/nginx.git
synced 2025-07-26 07:06:55 +08:00
previous commit broke two modules
This commit is contained in:
parent
0e5f86d871
commit
d79b21d1c6
@ -62,6 +62,7 @@ ngx_http_flv_handler(ngx_http_request_t *r)
|
|||||||
{
|
{
|
||||||
u_char *p;
|
u_char *p;
|
||||||
off_t start, len;
|
off_t start, len;
|
||||||
|
size_t root;
|
||||||
ngx_fd_t fd;
|
ngx_fd_t fd;
|
||||||
ngx_int_t rc;
|
ngx_int_t rc;
|
||||||
ngx_uint_t level, i;
|
ngx_uint_t level, i;
|
||||||
@ -94,7 +95,7 @@ ngx_http_flv_handler(ngx_http_request_t *r)
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ngx_http_map_uri_to_path(r, &path, 0) == NULL) {
|
if (ngx_http_map_uri_to_path(r, &path, &root, 0) == NULL) {
|
||||||
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -453,6 +453,7 @@ filename(r)
|
|||||||
CODE:
|
CODE:
|
||||||
|
|
||||||
dXSTARG;
|
dXSTARG;
|
||||||
|
size_t root;
|
||||||
ngx_http_request_t *r;
|
ngx_http_request_t *r;
|
||||||
ngx_http_perl_ctx_t *ctx;
|
ngx_http_perl_ctx_t *ctx;
|
||||||
|
|
||||||
@ -463,7 +464,7 @@ filename(r)
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ngx_http_map_uri_to_path(r, &ctx->filename, 0) == NULL) {
|
if (ngx_http_map_uri_to_path(r, &ctx->filename, &root, 0) == NULL) {
|
||||||
XSRETURN_UNDEF;
|
XSRETURN_UNDEF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user