mirror of
https://github.com/nginx/nginx.git
synced 2026-04-23 15:19:36 -04:00
Merge c9a51bc48a into 067d766f21
This commit is contained in:
commit
9290f777aa
1 changed files with 11 additions and 1 deletions
|
|
@ -1000,7 +1000,17 @@ ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b,
|
|||
break;
|
||||
}
|
||||
|
||||
if (ch <= 0x20 || ch == 0x7f) {
|
||||
if (ch <= 0x20
|
||||
|| ch == 0x22
|
||||
|| ch == 0x28
|
||||
|| ch == 0x29
|
||||
|| ch == 0x2c
|
||||
|| ch == 0x2f
|
||||
|| (ch >= 0x3b && ch <= 0x40)
|
||||
|| (ch >= 0x5b && ch <= 0x5d)
|
||||
|| ch == 0x7b
|
||||
|| ch == 0x7d)
|
||||
{
|
||||
r->header_end = p;
|
||||
return NGX_HTTP_PARSE_INVALID_HEADER;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue