diff src/http/ngx_http_parse.c @ 20:636dad238b63 NGINX_0_1_10

nginx 0.1.10 *) Bugfix: if the request without arguments contains "//", "/./", "/../" or "%XX" then the lost character in the request line was lost; bug appeared in 0.1.9. *) Bugfix: the fix in 0.1.9 for the files bigger than 2G on Linux did not work.
author Igor Sysoev <http://sysoev.ru>
date Fri, 26 Nov 2004 00:00:00 +0300
parents 6f8b0dc0f8dd
children 8b6db3bda591
line wrap: on
line diff
--- a/src/http/ngx_http_parse.c
+++ b/src/http/ngx_http_parse.c
@@ -686,7 +686,7 @@ ngx_int_t ngx_http_parse_complex_uri(ngx
 
     ch = *p++;
 
-    while (p < r->uri_end && r->args_start == NULL) {
+    while (p <= r->uri_end && r->args_start == NULL) {
 
         /*
          * we use "ch = *p++" inside the cycle but this operation is safe