Commit 91c56577 authored by Chris McDonough's avatar Chris McDonough

raw-fiy all substrings of decapitate header_re regex.

parent d203d2a2
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
############################################################################## ##############################################################################
__doc__='''Shared classes and functions __doc__='''Shared classes and functions
$Id: Aqueduct.py,v 1.46 2001/04/28 06:10:27 chrism Exp $''' $Id: Aqueduct.py,v 1.47 2001/04/28 07:21:59 chrism Exp $'''
__version__='$Revision: 1.46 $'[11:-2] __version__='$Revision: 1.47 $'[11:-2]
import Globals, os import Globals, os
from Globals import Persistent from Globals import Persistent
...@@ -409,10 +409,10 @@ def nicify(name): ...@@ -409,10 +409,10 @@ def nicify(name):
def decapitate(html, RESPONSE=None, def decapitate(html, RESPONSE=None,
header_re=re.compile( header_re=re.compile(
r'((' r'(('
'[^\000- <>:]+:[^\n]*\n' r'[^\000- <>:]+:[^\n]*\n'
'|' r'|'
'[ \011]+[^\000- ][^\n]*\n' r'[ \011]+[^\000- ][^\n]*\n'
')+)[ \t]*\n([\000-\377]+)' r')+)[ \t]*\n([\000-\377]+)'
), # please kill me now ), # please kill me now
space_re=re.compile(r'([ \t]+)'), space_re=re.compile(r'([ \t]+)'),
name_re=re.compile(r'([^\000- <>:]+):([^\n]*)'), name_re=re.compile(r'([^\000- <>:]+):([^\n]*)'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment