]> git.kaiwu.me - nginx.git/commitdiff
fix Win95 "/.../" handling for the record
authorIgor Sysoev <igor@sysoev.ru>
Mon, 7 Sep 2009 09:18:55 +0000 (09:18 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 7 Sep 2009 09:18:55 +0000 (09:18 +0000)
src/http/ngx_http_parse.c

index 4aa1be8edbe0639187eea9ab6504b73b3df58835..df6d56c0749317d779529d0d5b08b44452dcc422 100644 (file)
@@ -1192,7 +1192,7 @@ ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes)
                 while (*u != '/') {
                     u--;
                 }
-                if (u < r->uri.data) {
+                if (u == r->uri.data) {
                     return NGX_HTTP_PARSE_INVALID_REQUEST;
                 }
                 while (*(u - 1) != '/') {