diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-13 16:05:31 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-13 16:05:31 +0200 |
commit | 435d5a5a8967cb213a8de8cbebf2657b3aa2a9d0 (patch) | |
tree | 1ba9aa7fc369dd6ee7d4fc51fbb4fc68b90d1564 | |
parent | 5b84593e78927b716da4b65c95ef92aabdf4c548 (diff) | |
download | mblaze-435d5a5a8967cb213a8de8cbebf2657b3aa2a9d0.tar.gz mblaze-435d5a5a8967cb213a8de8cbebf2657b3aa2a9d0.tar.xz mblaze-435d5a5a8967cb213a8de8cbebf2657b3aa2a9d0.zip |
rfc2045: fix crlf after boundary
-rw-r--r-- | rfc2045.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rfc2045.c b/rfc2045.c index cb6d317..e2e8658 100644 --- a/rfc2045.c +++ b/rfc2045.c @@ -114,7 +114,9 @@ blaze822_multipart(struct message *msg, struct message **imsg) return 0; /// XXX access to stuff before first boundary? part += boundarylen; - if (*part == '\n') // XXX crlf + if (*part == '\r') + part++; + if (*part == '\n') part++; else if (*part == '-' && part < msg->bodyend && *(part+1) == '-') return 0; |