From e6e1bf8f54aa65daad568557e7c9fdfebc1988a8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Tue, 27 Jan 2009 23:14:14 +0000 Subject: [PATCH] * don't de-qp strings while rendering, do it while initializing. --- webcit/subst.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/webcit/subst.c b/webcit/subst.c index e4785f013..65cdc3c92 100644 --- a/webcit/subst.c +++ b/webcit/subst.c @@ -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); -- 2.39.2