changeset 5442:63f960bbc52f

Proper backtracking after space in a request line.
author Ruslan Ermilov <ru@nginx.com>
date Tue, 19 Nov 2013 06:57:58 +0400
parents 43ccaf8e8728
children 9ba2542d75bf
files src/http/ngx_http_parse.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_parse.c	Mon Nov 18 20:48:22 2013 +0400
+++ b/src/http/ngx_http_parse.c	Tue Nov 19 06:57:58 2013 +0400
@@ -617,6 +617,7 @@
             default:
                 r->space_in_uri = 1;
                 state = sw_check_uri;
+                p--;
                 break;
             }
             break;
@@ -670,6 +671,7 @@
             default:
                 r->space_in_uri = 1;
                 state = sw_uri;
+                p--;
                 break;
             }
             break;