aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-06-12 14:57:33 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-06-12 14:57:33 +0200
commitf726c2127678c3febf82ee4c9574a035ee8404e8 (patch)
treed9db441bc5d1b3a4e25cfe22c647df498c9628b5
parent5b6d2ff29fc0cf6e837c7136a45176af4b067a5c (diff)
downloadmblaze-f726c2127678c3febf82ee4c9574a035ee8404e8.tar.gz
rfc2231: blaze822_mime2231_parameter: decode first argument if we jumped inside the loop
-rw-r--r--rfc2231.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfc2231.c b/rfc2231.c
index 49fcc5d..f9a508b 100644
--- a/rfc2231.c
+++ b/rfc2231.c
@@ -45,7 +45,7 @@ blaze822_mime2231_parameter(char *s, char *name,
if (blaze822_mime_parameter(s, namenum, &sbuf, &ebuf)) {
found_extended:
// decode extended
- if (i == 0) { // extended-initial-value
+ if (i == 0 || i == 100) { // extended-initial-value
char *encstart = sbuf;
sbuf = strchr(sbuf, '\'');
if (!sbuf)