Klaus Demo nginx / bb7d615
fix reserved mapped uri length if alias has captures Igor Sysoev 13 years ago
1 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
16711671 return NULL;
16721672 }
16731673
1674 reserved += r->uri.len - alias + 1;
1675
16761674 if (clcf->root_lengths == NULL) {
16771675
16781676 *root_length = clcf->root.len;
16791677
1680 path->len = clcf->root.len + reserved;
1678 path->len = clcf->root.len + reserved + r->uri.len - alias + 1;
16811679
16821680 path->data = ngx_pnalloc(r->pool, path->len);
16831681 if (path->data == NULL) {
16871685 last = ngx_copy(path->data, clcf->root.data, clcf->root.len);
16881686
16891687 } else {
1690 if (ngx_http_script_run(r, path, clcf->root_lengths->elts, reserved,
1688 if (ngx_http_script_run(r, path, clcf->root_lengths->elts, ++reserved,
16911689 clcf->root_values->elts)
16921690 == NULL)
16931691 {