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

Skip to content

Commit 6623c3f

Browse files
committed
Pesky bug fix (nobody noticed :)
1 parent 30a4173 commit 6623c3f

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

lib/controller/checks.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,11 @@ def checkSqlInjection(place, parameter, value):
177177
lower, upper = int(match.group(1)), int(match.group(2))
178178
for _ in (lower, upper):
179179
if _ > 1:
180+
__ = 2 * (_ - 1) + 1 if _ == lower else 2 * _
180181
unionExtended = True
181-
test.request.columns = re.sub(r"\b%d\b" % _, str(2 * _), test.request.columns)
182-
title = re.sub(r"\b%d\b" % _, str(2 * _), title)
183-
test.title = re.sub(r"\b%d\b" % _, str(2 * _), test.title)
182+
test.request.columns = re.sub(r"\b%d\b" % _, str(__), test.request.columns)
183+
title = re.sub(r"\b%d\b" % _, str(__), title)
184+
test.title = re.sub(r"\b%d\b" % _, str(__), test.title)
184185

185186
# Skip test if the user's wants to test only for a specific
186187
# technique

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.42"
22+
VERSION = "1.0.5.43"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

0 commit comments

Comments
 (0)