Kaydet (Commit) 1f2e09bc authored tarafından Guido van Rossum's avatar Guido van Rossum

Fix (sanctioned by Sjoerd) for a problem reported by Andreas Faerber:

all processing instruction target names containing 'xml' were
rejected, instead (as the standard rejects) only the name 'xml' itself
(or case variants thereof).
üst 5116f90e
......@@ -495,7 +495,7 @@ class XMLParser:
self.syntax_error('xml:namespace prefix not unique')
self.__namespaces[prefix] = attrdict['ns']
else:
if string.find(string.lower(name), 'xml') >= 0:
if string.lower(name) == 'xml':
self.syntax_error('illegal processing instruction target name')
self.handle_proc(name, rawdata[k:j])
return end.end(0)
......
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