Mercurial > hg > nginx
changeset 3416:ee713c767b25
skip URI trailing spaces under Win32
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 28 Jan 2010 14:09:28 +0000 |
parents | 1b8c3599e3ce |
children | 15017418fd84 |
files | src/http/ngx_http_request.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -788,9 +788,11 @@ ngx_http_process_request_line(ngx_event_ p = r->uri.data + r->uri.len - 1; - if (*p == '.') { - - while (--p > r->uri.data && *p == '.') { /* void */ } + if (*p == '.' || *p == ' ') { + + while (--p > r->uri.data && (*p == '.' || *p == ' ')) { + /* void */ + } r->uri.len = p + 1 - r->uri.data;