rfc2047: allow empty encoded-words

This is non-conforming, but happens in the wild occasionally.
pull/2/head
Christian Neukirchen 8 years ago
parent 9336bc9939
commit 525233811c

@ -164,7 +164,7 @@ blaze822_decode_rfc2047(char *dst, char *src, size_t dlen, char *tgtenc)
char enc = lc(*e++);
if (*e++ != '?')
goto nocode;
char *start = e++;
char *start = e;
char *stop = strstr(e, "?=");
if (!stop)
goto nocode;

Loading…
Cancel
Save