diff options
author | Mark Sapiro <msapiro@value.net> | 2012-03-27 15:16:34 -0700 |
---|---|---|
committer | Mark Sapiro <msapiro@value.net> | 2012-03-27 15:16:34 -0700 |
commit | 8699637987a4632428f56e7eafa8aa3f4dcf2e30 (patch) | |
tree | f970de758eff45c345c87b2bd2219b2e5761c60c /Mailman | |
parent | 7cce1a8d4d63e75c110dddd1bd83ecef34bbc769 (diff) | |
download | mailman2-8699637987a4632428f56e7eafa8aa3f4dcf2e30.tar.gz mailman2-8699637987a4632428f56e7eafa8aa3f4dcf2e30.tar.xz mailman2-8699637987a4632428f56e7eafa8aa3f4dcf2e30.zip |
Fixed a potential crash in the web UI if a language is removed from the
LC_DESCRIPTIONS dictionary. (LP: #966565)
Diffstat (limited to 'Mailman')
-rw-r--r-- | Mailman/htmlformat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/htmlformat.py b/Mailman/htmlformat.py index 5d70ad28..2387096e 100644 --- a/Mailman/htmlformat.py +++ b/Mailman/htmlformat.py @@ -300,7 +300,7 @@ class Document(Container): def Format(self, indent=0, **kws): charset = 'us-ascii' - if self.language: + if self.language and Utils.IsLanguage(self.language): charset = Utils.GetCharSet(self.language) output = ['Content-Type: text/html; charset=%s\n' % charset] if not self.suppress_head: |