mirror of
https://github.com/php/php-src.git
synced 2026-03-29 03:32:20 +02:00
Parse quoted boundary correctly
This commit is contained in:
@@ -443,6 +443,12 @@ SAPI_POST_HANDLER_FUNC(rfc1867_post_handler)
|
||||
boundary++;
|
||||
boundary_len = strlen(boundary);
|
||||
|
||||
if (boundary[0] == '"' && boundary[boundary_len-1] == '"') {
|
||||
boundary++;
|
||||
boundary_len -= 2;
|
||||
boundary[boundary_len] = '\0';
|
||||
}
|
||||
|
||||
if (SG(request_info).post_data) {
|
||||
php_mime_split(SG(request_info).post_data, SG(request_info).post_data_length, boundary, array_ptr SLS_CC PLS_CC);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user