From: Igor Sysoev Date: Tue, 3 Aug 2010 13:35:48 +0000 (+0000) Subject: fix fastcgi_split_path_info, if URI was not fully captured X-Git-Tag: release-0.8.48~3 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=41212d27fa0b5f0aa61fa97b020cc47f5cc74904;p=nginx.git fix fastcgi_split_path_info, if URI was not fully captured --- diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c index 8cc42e5b7..04b01fbab 100644 --- a/src/http/modules/ngx_http_fastcgi_module.c +++ b/src/http/modules/ngx_http_fastcgi_module.c @@ -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; }