Mercurial > hg > nginx
comparison src/http/ngx_http_request.c @ 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 | fcd72b8d69f3 |
comparison
equal
deleted
inserted
replaced
3415:1b8c3599e3ce | 3416:ee713c767b25 |
---|---|
786 { | 786 { |
787 u_char *p; | 787 u_char *p; |
788 | 788 |
789 p = r->uri.data + r->uri.len - 1; | 789 p = r->uri.data + r->uri.len - 1; |
790 | 790 |
791 if (*p == '.') { | 791 if (*p == '.' || *p == ' ') { |
792 | 792 |
793 while (--p > r->uri.data && *p == '.') { /* void */ } | 793 while (--p > r->uri.data && (*p == '.' || *p == ' ')) { |
794 /* void */ | |
795 } | |
794 | 796 |
795 r->uri.len = p + 1 - r->uri.data; | 797 r->uri.len = p + 1 - r->uri.data; |
796 | 798 |
797 ngx_http_set_exten(r); | 799 ngx_http_set_exten(r); |
798 } | 800 } |