mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Reject absolute URIs with userinfo components in HTTP/1.1
This commit is contained in:
parent
14b4afa669
commit
d50bab8e78
1 changed files with 2 additions and 0 deletions
|
@ -394,6 +394,8 @@ parse_uri_skip_host(<< C, Rest/bits >>, State, Method) ->
|
|||
case C of
|
||||
$\r -> error_terminate(400, State, {connection_error, protocol_error,
|
||||
'The request-target must not be followed by a line break. (RFC7230 3.1.1)'});
|
||||
$@ -> error_terminate(400, State, {connection_error, protocol_error,
|
||||
'Absolute URIs must not include a userinfo component. (RFC7230 2.7.1)'});
|
||||
$/ -> parse_uri_path(Rest, State, Method, <<"/">>);
|
||||
$\s -> parse_version(Rest, State, Method, <<"/">>, <<>>);
|
||||
$? -> parse_uri_query(Rest, State, Method, <<"/">>, <<>>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue