Add Debian directory
[mspang/vmailman.git] / debian / patches / 59_fix_missing_language_crash.patch
1 Patch: fix_missing_language_crash.patch
2 Author: Paul Wise <pabs3@bonedaddy.net>
3 Fix crash when a language is missing
4 Index: Mailman/htmlformat.py
5 ===================================================================
6 --- Mailman/htmlformat.py.orig  2006-09-19 16:12:12.000000000 +0200
7 +++ Mailman/htmlformat.py       2006-09-19 16:13:47.000000000 +0200
8 @@ -298,7 +298,7 @@
9  
10      def Format(self, indent=0, **kws):
11          charset = 'us-ascii'
12 -        if self.language:
13 +        if self.language and Utils.IsLanguage(self.language):
14              charset = Utils.GetCharSet(self.language)
15          output = ['Content-Type: text/html; charset=%s\n' % charset]
16          if not self.suppress_head: