source:
npl/overig/libvmime/vmime-0.9.2-header-value-on-next-line.diff
@
c5c522c
Last change on this file since c5c522c was c5c522c, checked in by , 8 years ago | |
---|---|
|
|
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 157 157 { 158 158 contentsEnd = pos; 159 159 pos += 2; 160 break;161 160 } 162 161 else if (c == '\n') 163 162 { 164 163 contentsEnd = pos; 165 164 ++pos; 166 break; 167 } 165 } else { 168 166 169 167 while (pos < end) 170 168 { … … 186 184 187 185 ++pos; 188 186 } 187 } 189 188 190 189 // Handle the case of folded lines 191 190 if (buffer[pos] == ' ' || buffer[pos] == '\t') 192 191 { 193 192 // This is a folding white-space: we keep it as is and 194 193 // we continue with contents parsing... 195 196 // If the line contains only space characters, we assume it is197 // the end of the headers. This is not strictly standard-compliant198 // 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 }207 194 } 208 195 else 209 196 {
Note: See TracBrowser
for help on using the repository browser.