Skip to content

Commit

Permalink
Fix support of unicode URI path
Browse files Browse the repository at this point in the history
- Remove strict validation of URI path characters
- Resolve swoole#2751 Special characters in URI corrupt request object
  • Loading branch information
sshymko committed Aug 9, 2019
1 parent b74efda commit af89876
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions thirdparty/swoole_http_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,6 @@ size_t swoole_http_parser_execute (swoole_http_parser *parser,

case s_req_path:
{
if (normal_url_char[(unsigned char)ch]) break;

switch (ch) {
case ' ':
CALLBACK(url);
Expand Down Expand Up @@ -718,8 +716,6 @@ size_t swoole_http_parser_execute (swoole_http_parser *parser,
CALLBACK(path);
state = s_req_fragment_start;
break;
default:
goto error;
}
break;
}
Expand Down

0 comments on commit af89876

Please sign in to comment.