fix fastcgi_split_path_info, if URI was not fully captured

This commit is contained in:
Igor Sysoev 2010-08-03 13:35:48 +00:00
parent 515376efd2
commit c0a7183186

View file

@ -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;
}