Remove EOL chars from MULTIPART_PART_HEADER variable

This commit is contained in:
Ervin Hegedüs 2023-01-28 21:48:51 +01:00
parent dabf79eec2
commit 514abeb513

View File

@ -935,6 +935,7 @@ int Multipart::process_part_header(std::string *error, int offset) {
"Multipart: Added part header \"" + header_name \ "Multipart: Added part header \"" + header_name \
+ "\" \"" + header_value + "\"."); + "\" \"" + header_value + "\".");
if (len_without_termination > 0) { if (len_without_termination > 0) {
m_buf[len_without_termination] = '\0';
m_mpp->m_last_header_line.assign(m_buf); m_mpp->m_last_header_line.assign(m_buf);
} else { } else {
m_mpp->m_last_header_line.assign(""); m_mpp->m_last_header_line.assign("");