]> git.pld-linux.org Git - packages/Zope.git/commitdiff
- fix for serving unicode documents with non text/* content type
authorciesiel <ciesiel@pld-linux.org>
Mon, 27 Sep 2004 19:40:50 +0000 (19:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
(needed for proper XHTML serving) - tnx Jajcus

Changed files:
    Zope-xhtml_unicode_fix.patch -> 1.1

Zope-xhtml_unicode_fix.patch [new file with mode: 0644]

diff --git a/Zope-xhtml_unicode_fix.patch b/Zope-xhtml_unicode_fix.patch
new file mode 100644 (file)
index 0000000..f31b7aa
--- /dev/null
@@ -0,0 +1,12 @@
+diff -urN Zope-2.7.2-0/lib/python/ZPublisher/HTTPResponse.py Zope-2.7.2-0_chng/lib/python/ZPublisher/HTTPResponse.py
+--- Zope-2.7.2-0/lib/python/ZPublisher/HTTPResponse.py 2004-04-26 12:11:23.000000000 +0200
++++ Zope-2.7.2-0_chng/lib/python/ZPublisher/HTTPResponse.py    2004-09-27 21:08:10.564203240 +0200
+@@ -422,7 +422,7 @@
+         return self.use_HTTP_content_compression
+     def _encode_unicode(self,body,
+-                        charset_re=re.compile(r'text/[0-9a-z]+\s*;\s*' +
++                        charset_re=re.compile(r'(?:application|text)/[0-9a-z+-]+\s*;\s*' + 
+                                               r'charset=([-_0-9a-z]+' +
+                                               r')(?:(?:\s*;)|\Z)',
+                                               re.IGNORECASE)):
This page took 0.067035 seconds and 4 git commands to generate.