mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-01-13 18:09:03 +00:00
Fixes #6005
This commit is contained in:
@@ -19,7 +19,7 @@ from lib.core.enums import OS
|
||||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.10.1.27"
|
||||
VERSION = "1.10.1.28"
|
||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||
|
||||
@@ -44,7 +44,7 @@ def parseXmlNode(node):
|
||||
for element in node.findall("boundary"):
|
||||
boundary = AttribDict()
|
||||
|
||||
for child in element:
|
||||
for child in element.findall("*"):
|
||||
if child.text:
|
||||
values = cleanupVals(child.text, child.tag)
|
||||
boundary[child.tag] = values
|
||||
@@ -56,18 +56,19 @@ def parseXmlNode(node):
|
||||
for element in node.findall("test"):
|
||||
test = AttribDict()
|
||||
|
||||
for child in element:
|
||||
for child in element.findall("*"):
|
||||
if child.text and child.text.strip():
|
||||
values = cleanupVals(child.text, child.tag)
|
||||
test[child.tag] = values
|
||||
else:
|
||||
if len(child.findall("*")) == 0:
|
||||
progeny = child.findall("*")
|
||||
if len(progeny) == 0:
|
||||
test[child.tag] = None
|
||||
continue
|
||||
else:
|
||||
test[child.tag] = AttribDict()
|
||||
|
||||
for gchild in child:
|
||||
for gchild in progeny:
|
||||
if gchild.tag in test[child.tag]:
|
||||
prevtext = test[child.tag][gchild.tag]
|
||||
test[child.tag][gchild.tag] = [prevtext, gchild.text]
|
||||
|
||||
Reference in New Issue
Block a user