mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 11:45:46 +03:00
fix for a bug reported by jaccovantuijl@gmail.com (entries = zip(*[entries[colName] for colName in colList]))
This commit is contained in:
parent
9927f5a7db
commit
a6015b59df
|
@ -1183,6 +1183,10 @@ class Enumeration:
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
return entries
|
return entries
|
||||||
|
|
||||||
|
for column in colList:
|
||||||
|
lengths[column] = 0
|
||||||
|
entries[column] = []
|
||||||
|
|
||||||
colList = sorted(colList, key=lambda x: len(x) if x else MAX_INT)
|
colList = sorted(colList, key=lambda x: len(x) if x else MAX_INT)
|
||||||
|
|
||||||
for column in colList:
|
for column in colList:
|
||||||
|
@ -1199,6 +1203,7 @@ class Enumeration:
|
||||||
|
|
||||||
if isNumPosStrValue(value):
|
if isNumPosStrValue(value):
|
||||||
validColumnList = True
|
validColumnList = True
|
||||||
|
|
||||||
if value == count:
|
if value == count:
|
||||||
infoMsg = "using column '%s' as a pivot " % column
|
infoMsg = "using column '%s' as a pivot " % column
|
||||||
infoMsg += "for retrieving row data"
|
infoMsg += "for retrieving row data"
|
||||||
|
@ -1228,12 +1233,6 @@ class Enumeration:
|
||||||
break
|
break
|
||||||
|
|
||||||
for column in colList:
|
for column in colList:
|
||||||
if column not in lengths:
|
|
||||||
lengths[column] = 0
|
|
||||||
|
|
||||||
if column not in entries:
|
|
||||||
entries[column] = []
|
|
||||||
|
|
||||||
if column == colList[0]:
|
if column == colList[0]:
|
||||||
# Correction for pivotValues with unrecognized chars
|
# Correction for pivotValues with unrecognized chars
|
||||||
if pivotValue and '?' in pivotValue and pivotValue[0] != '?':
|
if pivotValue and '?' in pivotValue and pivotValue[0] != '?':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user