]> git.pld-linux.org Git - packages/Zope.git/blame - Zope-xhtml_unicode_fix.patch
- massive attack: added missing python-devel epoch do BR
[packages/Zope.git] / Zope-xhtml_unicode_fix.patch
CommitLineData
d9c813b1 1diff -urN Zope-2.7.2-0/lib/python/ZPublisher/HTTPResponse.py Zope-2.7.2-0_chng/lib/python/ZPublisher/HTTPResponse.py
2--- Zope-2.7.2-0/lib/python/ZPublisher/HTTPResponse.py 2004-04-26 12:11:23.000000000 +0200
3+++ Zope-2.7.2-0_chng/lib/python/ZPublisher/HTTPResponse.py 2004-09-27 21:08:10.564203240 +0200
4@@ -422,7 +422,7 @@
5 return self.use_HTTP_content_compression
6
7 def _encode_unicode(self,body,
8- charset_re=re.compile(r'text/[0-9a-z]+\s*;\s*' +
9+ charset_re=re.compile(r'(?:application|text)/[0-9a-z+-]+\s*;\s*' +
10 r'charset=([-_0-9a-z]+' +
11 r')(?:(?:\s*;)|\Z)',
12 re.IGNORECASE)):
This page took 0.025235 seconds and 4 git commands to generate.