aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2013-11-19 06:57:58 +0400
committerRuslan Ermilov <ru@nginx.com>2013-11-19 06:57:58 +0400
commitd47c435e9e92d09db50d2224752b47a482639898 (patch)
tree2e06512da3f92a8fda7ac80c565d096a4a10db76
parent1ac2693a33bb65c6b0d777584ad8024aa743ee88 (diff)
downloadnginx-d47c435e9e92d09db50d2224752b47a482639898.tar.gz
nginx-d47c435e9e92d09db50d2224752b47a482639898.zip
Proper backtracking after space in a request line.
-rw-r--r--src/http/ngx_http_parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c
index 973bc7430..cf89b8cfe 100644
--- a/src/http/ngx_http_parse.c
+++ b/src/http/ngx_http_parse.c
@@ -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;