mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08:00
fix fastcgi_split_path_info, if URI was not fully captured
This commit is contained in:
parent
81cd5e4f6f
commit
41212d27fa
@ -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 New Issue
Block a user