]> code.citadel.org Git - citadel.git/commitdiff
* don't de-qp strings while rendering, do it while initializing.
authorWilfried Göesgens <willi@citadel.org>
Tue, 27 Jan 2009 23:14:14 +0000 (23:14 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 27 Jan 2009 23:14:14 +0000 (23:14 +0000)
webcit/subst.c

index e4785f013665de55932dd7cab85315f26d26bcdd..65cdc3c92e18b57e3ce20d3b6c3fdfb60c736b14 100644 (file)
@@ -866,7 +866,6 @@ void StrBufAppendTemplate(StrBuf *Target,
                          const StrBuf *Source, int FormatTypeIndex)
 {
         wcsession *WCC;
-       StrBuf *Buf;
        char EscapeAs = ' ';
 
        if ((FormatTypeIndex < TP->Tokens->nParameters) &&
@@ -879,13 +878,7 @@ void StrBufAppendTemplate(StrBuf *Target,
        {
        case 'H':
                WCC = WC;
-               Buf = NewStrBufPlain(NULL, StrLength(Source));
-               StrBuf_RFC822_to_Utf8(Buf, 
-                                     Source, 
-                                     (WCC!=NULL)? WCC->DefaultCharset : NULL, 
-                                     NULL);
-               StrEscAppend(Target, Buf, NULL, 0, 2);
-               FreeStrBuf(&Buf);
+               StrEscAppend(Target, Source, NULL, 0, 2);
                break;
        case 'X':
                StrEscAppend(Target, Source, NULL, 0, 0);