Mercurial > hg > nginx
changeset 3570:e03b8a4fb906
test default NTFS stream "::$DATA"
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 04 Jun 2010 15:37:49 +0000 |
parents | 8bb6ce44672a |
children | 67394153ec39 |
files | src/http/ngx_http_request.c |
diffstat | 1 files changed, 20 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_request.c Fri Jun 04 13:34:23 2010 +0000 +++ b/src/http/ngx_http_request.c Fri Jun 04 15:37:49 2010 +0000 @@ -788,16 +788,31 @@ p = r->uri.data + r->uri.len - 1; - if (*p == '.' || *p == ' ') { - - while (--p > r->uri.data && (*p == '.' || *p == ' ')) { - /* void */ + while (p > r->uri.data) { + + if (*p == ' ') { + p--; + continue; + } + + if (*p == '.') { + p--; + continue; } + if (ngx_strncasecmp(p - 6, (u_char *) "::$data", 7) == 0) { + p -= 7; + continue; + } + + break; + } + + if (p != r->uri.data + r->uri.len - 1) { r->uri.len = p + 1 - r->uri.data; - ngx_http_set_exten(r); } + } #endif