]> 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 3c168aaf25b613d01847881452a2d91339eb12aa..f8d5910ddef1bb606ed008eb8c2f5882fd383e60 100644 (file)
@@ -614,6 +614,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;
@@ -667,6 +668,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;