upgrade package vmime to 0.9.1-svn-r546

r546 | vincent-richard | 2010-05-14 18:56:20 +0200 (Fri, 14 May 2010) | 1 line
Fixed parsing of header field value with no data on the first line (folding).
This commit is contained in:
Mark Brand 2010-05-15 20:45:27 +02:00
parent 2b714bbe93
commit b6ee0378c5
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,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')
{