- Fixed bug in xml_error_string() which resulted in messages being
off by one. (Scott)
+- Fixed bug #47217 (content-type is not set properly for file uploads).
+ (Ilia)
- Fixed bug #47174 (base64_decode() interprets pad char in mid string as
terminator). (Ilia)
- Fixed bug #47165 (Possible memory corruption when passing return value by
return 1;
}
if (type) {
- type++;
error = curl_formadd(&first, &last,
CURLFORM_COPYNAME, string_key,
CURLFORM_NAMELENGTH, (long)string_key_len - 1,
CURLFORM_FILE, postval,
- CURLFORM_CONTENTTYPE, type,
+ CURLFORM_CONTENTTYPE, type + sizeof(";type=") - 1,
CURLFORM_END);
- *(type - 1) = ';';
+ *type = ';';
} else {
error = curl_formadd(&first, &last,
CURLFORM_COPYNAME, string_key,