mirror of
https://github.com/nginx/nginx.git
synced 2025-06-10 11:38:36 +08:00
Improved detection of broken percent encoding in URI.
This commit is contained in:
parent
f7999fe689
commit
2ac24f1c88
@ -1561,6 +1561,10 @@ ngx_http_parse_complex_uri(ngx_http_request_t *r, ngx_uint_t merge_slashes)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (state == sw_quoted || state == sw_quoted_second) {
|
||||||
|
return NGX_HTTP_PARSE_INVALID_REQUEST;
|
||||||
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
|
||||||
r->uri.len = u - r->uri.data;
|
r->uri.len = u - r->uri.data;
|
||||||
|
Loading…
Reference in New Issue
Block a user