You are not logged in Log in Join
You are here: Home » Members » hewei » Zope RPMs for RedHat » Zope 2.7 » Patch for ZPT content_type charset bug » View Document

Log in
Name

Password

 

Patch for ZPT content_type charset bug

--- Products/PageTemplates/PageTemplate.py.orig 2002-09-19 22:45:11.000000000 +0800
+++ Products/PageTemplates/PageTemplate.py 2003-09-12 13:56:44.000000000 +0800
@@ -180,7 +180,7 @@

def html(self):
if not hasattr(getattr(self, 'aq_base', self), 'is_html'):
- return self.content_type == 'text/html'
+ return self.content_type[:9] == 'text/html'
return self.is_html

class _ModuleImporter: