Skip to content

Commit

Permalink
Fix #55121 Segfault with multipart/form-data POST
Browse files Browse the repository at this point in the history
  • Loading branch information
winks committed Jul 25, 2011
1 parent bd07868 commit 48ec4ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sapi/cli/php_cli_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1409,8 +1409,9 @@ static void php_cli_server_client_populate_request_info(const php_cli_server_cli
request_info->content_length = request_info->post_data_length = client->request.content_len;
{
char **val;
const char delimiter[] = ";";
if (SUCCESS == zend_hash_find(&client->request.headers, "Content-Type", sizeof("Content-Type"), (void**)&val)) {
request_info->content_type = *val;
request_info->content_type = strtok(*val, delimiter);
}
}
} /* }}} */
Expand Down

0 comments on commit 48ec4ac

Please sign in to comment.