X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fwebcit.c;fp=webcit%2Fwebcit.c;h=4c78cb6b250a407a8b8ec1aa37ece04c0e688bcf;hb=42ff6f76a8fd84b1e87d130a252533301f01d594;hp=4e3b2f86a3975099dd38b923a91f484dd37859f4;hpb=98262c0aab1a46d19a5f52a3bf96146c4ae02cc9;p=citadel.git diff --git a/webcit/webcit.c b/webcit/webcit.c index 4e3b2f86a..4c78cb6b2 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -908,7 +908,7 @@ void tmplput_importantmessage(StrBuf *Target, WCTemplputParams *TP) if (WCC != NULL) { if (StrLength(WCC->ImportantMsg) > 0) { - StrEscAppend(Target, WCC->ImportantMsg, NULL, 0, 0); + StrBufAppendTemplate(Target, TP, WCC->ImportantMsg, 0); } } } @@ -956,7 +956,7 @@ InitModule_WEBCIT RegisterConditional("COND:IS_HTTPS", 0, Conditional_IS_HTTPS, CTX_NONE); RegisterNamespace("CSSLOCAL", 0, 0, tmplput_csslocal, NULL, CTX_NONE); - RegisterNamespace("IMPORTANTMESSAGE", 0, 0, tmplput_importantmessage, NULL, CTX_NONE); + RegisterNamespace("IMPORTANTMESSAGE", 0, 1, tmplput_importantmessage, NULL, CTX_NONE); RegisterNamespace("TRAILING_JAVASCRIPT", 0, 0, tmplput_trailing_javascript, NULL, CTX_NONE); RegisterNamespace("URL:DISPLAYNAME", 0, 1, tmplput_HANDLER_DISPLAYNAME, NULL, CTX_NONE); RegisterNamespace("PACKAGESTRING", 0, 1, tmplput_packagestring, NULL, CTX_NONE);