Mercurial > hg > nginx
comparison src/http/ngx_http_parse.c @ 3089:3391f0dad64e stable-0.7
fix Win95 "/.../" handling for the record
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 07 Sep 2009 09:18:55 +0000 |
parents | e50a2faac31d |
children | 1ecd37f610c0 |
comparison
equal
deleted
inserted
replaced
3088:588c4b56875e | 3089:3391f0dad64e |
---|---|
1190 return NGX_HTTP_PARSE_INVALID_REQUEST; | 1190 return NGX_HTTP_PARSE_INVALID_REQUEST; |
1191 } | 1191 } |
1192 while (*u != '/') { | 1192 while (*u != '/') { |
1193 u--; | 1193 u--; |
1194 } | 1194 } |
1195 if (u < r->uri.data) { | 1195 if (u == r->uri.data) { |
1196 return NGX_HTTP_PARSE_INVALID_REQUEST; | 1196 return NGX_HTTP_PARSE_INVALID_REQUEST; |
1197 } | 1197 } |
1198 while (*(u - 1) != '/') { | 1198 while (*(u - 1) != '/') { |
1199 u--; | 1199 u--; |
1200 } | 1200 } |