From 89cb103a2c07aede9969ee586225c4d7b0411a29 Mon Sep 17 00:00:00 2001 From: Seth Hall Date: Tue, 5 Jun 2012 11:25:10 -0400 Subject: [PATCH] Fixed a bug with the MIME analyzer not removing whitespace on wrapped headers. - No test due to lack of tracefile with wrapped header. --- src/MIME.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MIME.cc b/src/MIME.cc index 4a7c0268b0..11f764266d 100644 --- a/src/MIME.cc +++ b/src/MIME.cc @@ -426,7 +426,8 @@ void MIME_Entity::ContHeader(int len, const char* data) return; } - current_header_line->append(len, data); + int ws = MIME_count_leading_lws(len, data); + current_header_line->append(len - ws, data + ws); } void MIME_Entity::FinishHeader()