[nginx] Proper backtracking after space in a request line.
    Maxim Dounin 
    mdounin at mdounin.ru
       
    Tue Nov 19 14:57:24 UTC 2013
    
    
  
details:   http://hg.nginx.org/nginx/rev/988c22615014
branches:  stable-1.4
changeset: 5446:988c22615014
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
@@ -614,6 +614,7 @@ ngx_http_parse_request_line(ngx_http_req
             default:
                 r->space_in_uri = 1;
                 state = sw_check_uri;
+                p--;
                 break;
             }
             break;
@@ -667,6 +668,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