fix fastcgi_split_path_info, if URI was not fully captured
This commit is contained in:
parent
515376efd2
commit
c0a7183186
1 changed files with 2 additions and 2 deletions
|
@ -2566,10 +2566,10 @@ ngx_http_fastcgi_split(ngx_http_request_t *r, ngx_http_fastcgi_loc_conf_t *flcf)
|
|||
|
||||
if (n >= 0) { /* match */
|
||||
f->script_name.len = captures[3] - captures[2];
|
||||
f->script_name.data = r->uri.data;
|
||||
f->script_name.data = r->uri.data + captures[2];
|
||||
|
||||
f->path_info.len = captures[5] - captures[4];
|
||||
f->path_info.data = r->uri.data + f->script_name.len;
|
||||
f->path_info.data = r->uri.data + captures[4];
|
||||
|
||||
return f;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue