diff options
author | Ruslan Ermilov <ru@nginx.com> | 2013-11-19 06:57:58 +0400 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2013-11-19 06:57:58 +0400 |
commit | 822a148df534fb30000f867d764d31e527e4ae4f (patch) | |
tree | 39b88d104bdc929375568c42f5f0ad6addc7087b | |
parent | 491d3e76fcae91f58855ad85a1d5a789295c9689 (diff) | |
download | nginx-822a148df534fb30000f867d764d31e527e4ae4f.tar.gz |
Proper backtracking after space in a request line.
-rw-r--r-- | src/http/ngx_http_parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c index 3c168aaf2..f8d5910dd 100644 --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c @@ -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; |