mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-16 19:40:37 +03:00
minor fix
This commit is contained in:
parent
d3ddaba7be
commit
20df2bbd10
|
@ -102,6 +102,9 @@ impl = getDOMImplementation()
|
|||
class MissingRootTag(Exception):
|
||||
"""root tag name was not given"""
|
||||
|
||||
class IncorrectRootTag(Exception):
|
||||
"""root tag is given but incorrect"""
|
||||
|
||||
class InvalidXML(Exception):
|
||||
"""failed to parse XML input"""
|
||||
|
||||
|
@ -290,7 +293,7 @@ class XMLNode:
|
|||
parentDict = self._parent._childrenByName
|
||||
nodeName = node.nodeName
|
||||
if not parentDict.has_key(nodeName):
|
||||
parentDict[nodeName] = parent.__dict__[nodeName] = self
|
||||
parentDict[nodeName] = self._parent.__dict__[nodeName] = self
|
||||
else:
|
||||
if isinstance(parentDict[nodeName], XMLNode):
|
||||
# this is the second child node of a given tag name, so convert
|
||||
|
|
Loading…
Reference in New Issue
Block a user