perl-5.22
Last change
on this file since 2e1206e was
c5c522c,
checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago
|
initial commit, transferred from cleaned syn3 svn tree
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[c5c522c] | 1 | diff -Nurb libvmime-0.9.2.orig/src/headerField.cpp libvmime-0.9.2.patched/src/headerField.cpp |
---|
| 2 | --- libvmime-0.9.2.orig/src/headerField.cpp 2010-05-20 05:33:45.000000000 -0700 |
---|
| 3 | +++ libvmime-0.9.2.patched/src/headerField.cpp 2011-08-29 12:10:08.438497914 -0700 |
---|
| 4 | @@ -157,14 +157,12 @@ |
---|
| 5 | { |
---|
| 6 | contentsEnd = pos; |
---|
| 7 | pos += 2; |
---|
| 8 | - break; |
---|
| 9 | } |
---|
| 10 | else if (c == '\n') |
---|
| 11 | { |
---|
| 12 | contentsEnd = pos; |
---|
| 13 | ++pos; |
---|
| 14 | - break; |
---|
| 15 | - } |
---|
| 16 | + } else { |
---|
| 17 | |
---|
| 18 | while (pos < end) |
---|
| 19 | { |
---|
| 20 | @@ -186,24 +184,13 @@ |
---|
| 21 | |
---|
| 22 | ++pos; |
---|
| 23 | } |
---|
| 24 | + } |
---|
| 25 | |
---|
| 26 | // Handle the case of folded lines |
---|
| 27 | if (buffer[pos] == ' ' || buffer[pos] == '\t') |
---|
| 28 | { |
---|
| 29 | // This is a folding white-space: we keep it as is and |
---|
| 30 | // we continue with contents parsing... |
---|
| 31 | - |
---|
| 32 | - // If the line contains only space characters, we assume it is |
---|
| 33 | - // the end of the headers. This is not strictly standard-compliant |
---|
| 34 | - // but, hey, we can't fail when parsing some malformed mails... |
---|
| 35 | - while (pos < end && (buffer[pos] == ' ' || buffer[pos] == '\t')) |
---|
| 36 | - ++pos; |
---|
| 37 | - |
---|
| 38 | - if ((pos < end && buffer[pos] == '\n') || |
---|
| 39 | - (pos + 1 < end && buffer[pos] == '\r' && buffer[pos + 1] == '\n')) |
---|
| 40 | - { |
---|
| 41 | - break; |
---|
| 42 | - } |
---|
| 43 | } |
---|
| 44 | else |
---|
| 45 | { |
---|
Note: See
TracBrowser
for help on using the repository browser.