projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
3f4ceb1
)
Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel
author
Wilfried Goesgens
<dothebart@citadel.org>
Sat, 20 Aug 2011 11:58:57 +0000
(11:58 +0000)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Sat, 20 Aug 2011 11:58:57 +0000
(11:58 +0000)
libcitadel/lib/stringbuf.c
patch
|
blob
|
history
diff --git
a/libcitadel/lib/stringbuf.c
b/libcitadel/lib/stringbuf.c
index 273c09ecb2d320f28a5c8f0aa3e31cf5eaf9a387..d4b2e666f1a289d6cde8da087e1bbc0d0f3a452f 100644
(file)
--- a/
libcitadel/lib/stringbuf.c
+++ b/
libcitadel/lib/stringbuf.c
@@
-2680,6
+2680,8
@@
int StrBufRFC2047encode(StrBuf **target, const StrBuf *source)
(ch > 126) ||
(ch == 61) ||
(ch == '=') ||
+ (ch == '?') ||
+ (ch == '_') ||
(ch == '[') ||
(ch == ']') )
{
@@
-2687,7
+2689,10
@@
int StrBufRFC2047encode(StrBuf **target, const StrBuf *source)
(*target)->BufUsed += 3;
}
else {
- (*target)->buf[(*target)->BufUsed] = ch;
+ if (ch == ' ')
+ (*target)->buf[(*target)->BufUsed] = '_';
+ else
+ (*target)->buf[(*target)->BufUsed] = ch;
(*target)->BufUsed++;
}
}