From 981cf5eaa82259488eec0922bf2aeb07ea3bedaf Mon Sep 17 00:00:00 2001 From: Yasuhito FUTATSUKI at POEM Date: Fri, 22 Jun 2018 09:34:52 +0900 Subject: * apply Utils.websafe() to description string in admin.py * Use GetDescription() in HTMLFormatter.py --- Mailman/HTMLFormatter.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Mailman/HTMLFormatter.py') diff --git a/Mailman/HTMLFormatter.py b/Mailman/HTMLFormatter.py index 93686899..098a2881 100644 --- a/Mailman/HTMLFormatter.py +++ b/Mailman/HTMLFormatter.py @@ -389,11 +389,16 @@ class HTMLFormatter: listlangs = _(Utils.GetLanguageDescr(self.preferred_language)) else: listlangs = self.GetLangSelectBox(lang).Format() + if lang: + cset = Utils.GetCharSet(lang) or 'us-ascii' + else: + cset = Utils.GetCharSet(self.preferred_language) or 'us-ascii' d = { '' : self.GetMailmanFooter(), '' : self.real_name, '' : self._internal_name, - '' : Utils.websafe(self.description), + '' : + Utils.websafe(self.GetDescription(cset)), '' : '' + BR.join(self.info.split(NL)) + '', '' : self.FormatFormEnd(), -- cgit v1.2.3