Mercurial > hg > nginx
comparison src/http/ngx_http_parse.c @ 7577:5a3426683251
Improved detection of broken percent encoding in URI.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 08 Oct 2019 21:56:14 +0300 |
parents | 52b5ee64fe11 |
children | 79bcbe7cd3f2 |
comparison
equal
deleted
inserted
replaced
7576:7fdcf308e0f0 | 7577:5a3426683251 |
---|---|
1559 | 1559 |
1560 return NGX_HTTP_PARSE_INVALID_REQUEST; | 1560 return NGX_HTTP_PARSE_INVALID_REQUEST; |
1561 } | 1561 } |
1562 } | 1562 } |
1563 | 1563 |
1564 if (state == sw_quoted || state == sw_quoted_second) { | |
1565 return NGX_HTTP_PARSE_INVALID_REQUEST; | |
1566 } | |
1567 | |
1564 done: | 1568 done: |
1565 | 1569 |
1566 r->uri.len = u - r->uri.data; | 1570 r->uri.len = u - r->uri.data; |
1567 | 1571 |
1568 if (r->uri_ext) { | 1572 if (r->uri_ext) { |