Message60307
Logged In: YES
user_id=159908
Two troublesome input examples:
<table border=0 width="100%"cellspacing=0 cellpadding=0>
<option selected value=>
Here's a fix I came up with in HTMLParser.py: replace the
definition of locatestarttagend with:
locatestarttagend = re.compile(r"""
<[a-zA-Z][-.a-zA-Z0-9:_]* # tag name
\s* # whitespace after tag name
(?:
(?:[a-zA-Z_][-.:a-zA-Z0-9_]* # attribute name
(?:\s*=\s* # value indicator
(?:'[^']*' # LITA-enclosed value
|\"[^\"]*\" # LIT-enclosed value
|[^'\">\s]+ # bare value
)?
)?
)
\s* # whitespace between attrs
)*
\s* # trailing whitespace
""", re.VERBOSE)
|
|
Date |
User |
Action |
Args |
2008-01-20 09:55:57 | admin | link | issue683938 messages |
2008-01-20 09:55:57 | admin | create | |
|