mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix #55121 Segfault with multipart/form-data POST
This commit is contained in:
parent
bd07868280
commit
48ec4ace5f
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
} /* }}} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue