Mercurial > hg > nginx
comparison src/http/modules/ngx_http_fastcgi_module.c @ 3735:1ba712d077d1
fix fastcgi_split_path_info, if URI was not fully captured
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 03 Aug 2010 13:35:48 +0000 |
parents | 72cc5b789021 |
children | ca7b9caa20e5 |
comparison
equal
deleted
inserted
replaced
3734:e3a6785b5be4 | 3735:1ba712d077d1 |
---|---|
2564 | 2564 |
2565 n = ngx_regex_exec(flcf->split_regex, &r->uri, captures, (1 + 2) * 3); | 2565 n = ngx_regex_exec(flcf->split_regex, &r->uri, captures, (1 + 2) * 3); |
2566 | 2566 |
2567 if (n >= 0) { /* match */ | 2567 if (n >= 0) { /* match */ |
2568 f->script_name.len = captures[3] - captures[2]; | 2568 f->script_name.len = captures[3] - captures[2]; |
2569 f->script_name.data = r->uri.data; | 2569 f->script_name.data = r->uri.data + captures[2]; |
2570 | 2570 |
2571 f->path_info.len = captures[5] - captures[4]; | 2571 f->path_info.len = captures[5] - captures[4]; |
2572 f->path_info.data = r->uri.data + f->script_name.len; | 2572 f->path_info.data = r->uri.data + captures[4]; |
2573 | 2573 |
2574 return f; | 2574 return f; |
2575 } | 2575 } |
2576 | 2576 |
2577 if (n == NGX_REGEX_NO_MATCHED) { | 2577 if (n == NGX_REGEX_NO_MATCHED) { |