projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b4cb45
)
Ignore empty MIME parameter
author
Philipp Takacs
<philipp@bureaucracy.de>
Fri, 7 Aug 2015 13:22:23 +0000
(15:22 +0200)
committer
Philipp Takacs
<philipp@bureaucracy.de>
Mon, 10 Aug 2015 08:33:59 +0000
(10:33 +0200)
If a message contains an empty parameter, we only produce a warning.
uip/mhparse.c
patch
|
blob
|
history
diff --git
a/uip/mhparse.c
b/uip/mhparse.c
index
7a15b75
..
f520e03
100644
(file)
--- a/
uip/mhparse.c
+++ b/
uip/mhparse.c
@@
-766,7
+766,9
@@
bad_quote:
}
if (!*vp) {
advise(NULL, "invalid parameter in message %s's %s: field\n%*.*s(parameter %s)", ct->c_file, TYPE_FIELD, i, i, "", *ap);
- return NOTOK;
+ *ci->ci_values[ap - ci->ci_attrs] = '\0';
+ *ci->ci_attrs[ap - ci->ci_attrs] = '\0';
+ continue;
}
ap++;