[nginx] Proper backtracking after space in a request line.
Maxim Dounin
mdounin at mdounin.ru
Tue Nov 19 14:57:19 UTC 2013
details: http://hg.nginx.org/nginx/rev/63f960bbc52f
branches:
changeset: 5442:63f960bbc52f
user: Ruslan Ermilov <ru at nginx.com>
date: Tue Nov 19 06:57:58 2013 +0400
description:
Proper backtracking after space in a request line.
diffstat:
src/http/ngx_http_parse.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (19 lines):
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c
--- 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_req
default:
r->space_in_uri = 1;
state = sw_check_uri;
+ p--;
break;
}
break;
@@ -670,6 +671,7 @@ ngx_http_parse_request_line(ngx_http_req
default:
r->space_in_uri = 1;
state = sw_uri;
+ p--;
break;
}
break;
More information about the nginx-devel
mailing list