From 6623c0ae29accba12d27fb6da93038c80927402c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ervin=20Heged=C3=BCs?= Date: Sun, 23 Apr 2023 17:32:26 +0200 Subject: [PATCH] Changed strip methodology to MULTIPART_PART_HEADERS --- src/request_body_processor/multipart.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/request_body_processor/multipart.cc b/src/request_body_processor/multipart.cc index df769815..78dc5d9c 100644 --- a/src/request_body_processor/multipart.cc +++ b/src/request_body_processor/multipart.cc @@ -935,8 +935,7 @@ int Multipart::process_part_header(std::string *error, int offset) { "Multipart: Added part header \"" + header_name \ + "\" \"" + header_value + "\"."); 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, len_without_termination); } else { m_mpp->m_last_header_line.assign(""); }