mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 06:03:31 -06:00
Proper backtracking after space in a request line.
This commit is contained in:
parent
1ac2693a33
commit
d47c435e9e
@ -617,6 +617,7 @@ ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b)
|
|||||||
default:
|
default:
|
||||||
r->space_in_uri = 1;
|
r->space_in_uri = 1;
|
||||||
state = sw_check_uri;
|
state = sw_check_uri;
|
||||||
|
p--;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -670,6 +671,7 @@ ngx_http_parse_request_line(ngx_http_request_t *r, ngx_buf_t *b)
|
|||||||
default:
|
default:
|
||||||
r->space_in_uri = 1;
|
r->space_in_uri = 1;
|
||||||
state = sw_uri;
|
state = sw_uri;
|
||||||
|
p--;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user