Klaus Demo nginx / 77860d7
skip URI trailing spaces under Win32 Igor Sysoev 11 years ago
1 changed file(s) with 5 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
787787
788788 p = r->uri.data + r->uri.len - 1;
789789
790 if (*p == '.') {
791
792 while (--p > r->uri.data && *p == '.') { /* void */ }
790 if (*p == '.' || *p == ' ') {
791
792 while (--p > r->uri.data && (*p == '.' || *p == ' ')) {
793 /* void */
794 }
793795
794796 r->uri.len = p + 1 - r->uri.data;
795797