aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-29 13:58:11 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-29 13:58:11 +0200
commita1ed8d7b6c1d140351aa9781e7d41655a38e6681 (patch)
tree96a0dbc107219c9d7d4a250715359b6b4d6d9024
parent12eba9432702800cf1a17b71198305cd988c93f9 (diff)
downloadmblaze-a1ed8d7b6c1d140351aa9781e7d41655a38e6681.tar.gz
rfc2047: blaze822_decode_qp: skip =CRLF
-rw-r--r--rfc2047.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rfc2047.c b/rfc2047.c
index 63c4468..8462d25 100644
--- a/rfc2047.c
+++ b/rfc2047.c
@@ -34,6 +34,8 @@ blaze822_decode_qp(char *start, char *stop, char **deco, size_t *decleno)
while (s < stop) {
if (*s == '=' && s[1] == '\n') {
s += 2;
+ } else if (*s == '=' && s[1] == '\r' && s[2] == '\n') {
+ s += 3;
} else if (*s == '=' && s+2 < stop) {
unsigned char c1 = s[1];
unsigned char c2 = s[2];