summaryrefslogtreecommitdiffstats
path: root/src/vmime-0.9.1-svn-r546-20100514.patch
blob: f46e13822850f2be3388d3ebebf01e51a3d87e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
This file is part of mingw-cross-env.
See doc/index.html for further information.

diff -urN a/src/headerField.cpp b/src/headerField.cpp
--- a/src/headerField.cpp	2010-05-15 20:36:05.685783611 +0200
+++ b/src/headerField.cpp	2010-05-15 20:36:18.853452026 +0200
@@ -146,6 +146,12 @@
 				{
 					c = buffer[pos];
 
+					// Check for folded line
+					if (c == '\r' && pos + 2 < end && buffer[pos + 1] == '\n' &&
+						(buffer[pos + 2] == ' ' || buffer[pos + 2] == '\t'))
+					{
+						pos += 3;
+					}
 					// Check for end of contents
 					if (c == '\r' && pos + 1 < end && buffer[pos + 1] == '\n')
 					{