mirror of
https://github.com/nginx/nginx.git
synced 2024-11-29 12:14:27 -06:00
reserve space for r->uri, the bug has been introduced in r2566
This commit is contained in:
parent
f2a8affd7e
commit
f76a6c2244
@ -1688,7 +1688,9 @@ ngx_http_map_uri_to_path(ngx_http_request_t *r, ngx_str_t *path,
|
||||
last = ngx_copy(path->data, clcf->root.data, clcf->root.len);
|
||||
|
||||
} else {
|
||||
if (ngx_http_script_run(r, path, clcf->root_lengths->elts, ++reserved,
|
||||
reserved += alias ? 1 : r->uri.len + 1;
|
||||
|
||||
if (ngx_http_script_run(r, path, clcf->root_lengths->elts, reserved,
|
||||
clcf->root_values->elts)
|
||||
== NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user