projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fadbab
)
spost accept body lines with 998 characters
author
Philipp Takacs
<philipp@bureaucracy.de>
Sat, 14 Jul 2018 11:41:09 +0000
(13:41 +0200)
committer
markus schnalke
<meillo@marmaro.de>
Sun, 15 Jul 2018 11:31:07 +0000
(13:31 +0200)
uip/spost.c
patch
|
blob
|
history
diff --git
a/uip/spost.c
b/uip/spost.c
index
39d8ada
..
fd0cbcc
100644
(file)
--- a/
uip/spost.c
+++ b/
uip/spost.c
@@
-245,7
+245,7
@@
main(int argc, char **argv)
finish_headers(out);
fprintf(out, "\n%s", f.value);
while ((state = m_getfld2(state, &f, in)) == BODY2) {
- if (f.valuelen >= NAMESZ) {
+ if (f.valuelen > NAMESZ+1 || (!f.crlf && f.valuelen > NAMESZ)) {
adios(EX_DATAERR, NULL, "Body contains a to long line");
}
fputs(f.value, out);