]> git.kaiwu.me - nginx.git/commitdiff
Proper backtracking after space in a request line.
authorRuslan Ermilov <ru@nginx.com>
Tue, 19 Nov 2013 02:57:58 +0000 (06:57 +0400)
committerRuslan Ermilov <ru@nginx.com>
Tue, 19 Nov 2013 02:57:58 +0000 (06:57 +0400)
src/http/ngx_http_parse.c

index 973bc74302d12458c8552a8c6c7c7d8ed4f8f247..cf89b8cfe354fc3ec81e5579aa6db07a2b76c0d4 100644 (file)
@@ -617,6 +617,7 @@ ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b)
             default:
                 r->space_in_uri = 1;
                 state = sw_check_uri;
+                p--;
                 break;
             }
             break;
@@ -670,6 +671,7 @@ ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b)
             default:
                 r->space_in_uri = 1;
                 state = sw_uri;
+                p--;
                 break;
             }
             break;