mirror of
https://github.com/nginx/nginx.git
synced 2025-07-25 22:56:59 +08:00
HTTP: Do not allow multiple CRs before LF
This is not permitted by RFC9112.
This commit is contained in:
parent
dab8c0e762
commit
e30ddb7a3b
@ -1040,8 +1040,6 @@ ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b,
|
|||||||
switch (ch) {
|
switch (ch) {
|
||||||
case LF:
|
case LF:
|
||||||
goto done;
|
goto done;
|
||||||
case CR:
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
return NGX_HTTP_PARSE_INVALID_HEADER;
|
return NGX_HTTP_PARSE_INVALID_HEADER;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user