Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 633e4df

Browse files
committed
Fixes #1886
1 parent 5e8b105 commit 633e4df

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.5.39"
22+
VERSION = "1.0.5.40"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

lib/utils/pivotdumptable.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,13 @@ def _(column, pivotValue):
134134
value = _(column, pivotValue)
135135
if column == colList[0]:
136136
if isNoneValue(value):
137-
for pivotValue in filter(None, (" " if pivotValue == " " else None, "%s%s" % (pivotValue[0], unichr(ord(pivotValue[1]) + 1)) if len(pivotValue) > 1 else None, unichr(ord(pivotValue[0]) + 1))):
138-
value = _(column, pivotValue)
139-
if not isNoneValue(value):
140-
break
137+
try:
138+
for pivotValue in filter(None, (" " if pivotValue == " " else None, "%s%s" % (pivotValue[0], unichr(ord(pivotValue[1]) + 1)) if len(pivotValue) > 1 else None, unichr(ord(pivotValue[0]) + 1))):
139+
value = _(column, pivotValue)
140+
if not isNoneValue(value):
141+
break
142+
except ValueError:
143+
pass
141144

142145
if isNoneValue(value):
143146
breakRetrieval = True

0 commit comments

Comments
 (0)