source: npl/overig/libvmime/vmime-0.9.2-header-value-on-next-line.diff @ c5c522c

gcc484ntopperl-5.22
Last change on this file since c5c522c 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
  • src/headerField.cpp

    diff -Nurb libvmime-0.9.2.orig/src/headerField.cpp libvmime-0.9.2.patched/src/headerField.cpp
    old new  
    157157                                        {
    158158                                                contentsEnd = pos;
    159159                                                pos += 2;
    160                                                 break;
    161160                                        }
    162161                                        else if (c == '\n')
    163162                                        {
    164163                                                contentsEnd = pos;
    165164                                                ++pos;
    166                                                 break;
    167                                         }
     165                                        } else {
    168166
    169167                                        while (pos < end)
    170168                                        {
     
    186184
    187185                                                ++pos;
    188186                                        }
     187                                        }
    189188
    190189                                        // Handle the case of folded lines
    191190                                        if (buffer[pos] == ' ' || buffer[pos] == '\t')
    192191                                        {
    193192                                                // This is a folding white-space: we keep it as is and
    194193                                                // we continue with contents parsing...
    195 
    196                                                 // If the line contains only space characters, we assume it is
    197                                                 // the end of the headers. This is not strictly standard-compliant
    198                                                 // but, hey, we can't fail when parsing some malformed mails...
    199                                                 while (pos < end && (buffer[pos] == ' ' || buffer[pos] == '\t'))
    200                                                         ++pos;
    201 
    202                                                 if ((pos < end && buffer[pos] == '\n') ||
    203                                                     (pos + 1 < end && buffer[pos] == '\r' && buffer[pos + 1] == '\n'))
    204                                                 {
    205                                                         break;
    206                                                 }
    207194                                        }
    208195                                        else
    209196                                        {
Note: See TracBrowser for help on using the repository browser.