projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make base64 encoding not add random linebreak/feed characters.
[citadel.git]
/
libcitadel
/
lib
/
tools.c
diff --git
a/libcitadel/lib/tools.c
b/libcitadel/lib/tools.c
index bc0cb767b3cbaa613723452761453117f0cf84f2..ff35f9ecae04b9e7408cf9322bb17848fca7216d 100644
(file)
--- a/
libcitadel/lib/tools.c
+++ b/
libcitadel/lib/tools.c
@@
-320,10
+320,6
@@
size_t CtdlEncodeBase64(char *dest, const char *source, size_t sourcelen, int li
t = destoffset;
destoffset += base64_encode_blockend(&(dest[destoffset]), &_state);
- if (t < destoffset) {
- dest[destoffset++] = '\r';
- dest[destoffset++] = '\n';
- }
}
else {
destoffset = base64_encode_block(source, sourcelen, dest, &_state);