Ticket #2396: encoded-deny.patch
| File encoded-deny.patch, 783 bytes (added by , 4 years ago) |
|---|
-
src/http/ngx_http_parse.c
diff -aruN nginx-1.21.6/src/http/ngx_http_parse.c nginx/src/http/ngx_http_parse.c
old new 1526 1526 ch = *p++; 1527 1527 break; 1528 1528 1529 } else if (ch == '\0') {1529 } else if (ch < 0x20 || ch == 0x7f) { 1530 1530 return NGX_HTTP_PARSE_INVALID_REQUEST; 1531 1531 } 1532 1532 … … 1546 1546 1547 1547 } else if (ch == '+') { 1548 1548 r->plus_in_uri = 1; 1549 } else if (ch < 0x20 || ch == 0x7f) { 1550 return NGX_HTTP_PARSE_INVALID_REQUEST; 1549 1551 } 1550 1552 1551 1553 state = quoted_state;
