1
0
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:
Sascha Schumann
2000-10-20 23:40:07 +00:00
parent 8fe7cf26fc
commit 836df2f798

View File

@@ -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);
}