Skip to content

Commit a90b5f7

Browse files
committed
Fixes #2766
1 parent 06ca058 commit a90b5f7

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

lib/core/agent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def payload(self, place=None, parameter=None, value=None, newValue=None, where=N
9797
paramString = conf.parameters[place]
9898
paramDict = conf.paramDict[place]
9999
origValue = getUnicode(paramDict[parameter])
100+
newValue = getUnicode(newValue) if newValue else newValue
100101

101102
if place == PLACE.URI or BOUNDED_INJECTION_MARKER in origValue:
102103
paramString = origValue

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def walk(head, current=None):
635635
elif isinstance(value, (bool, int, float, basestring)):
636636
original = current[key]
637637
if isinstance(value, bool):
638-
current[key] = "%s%s" % (str(value).lower(), BOUNDED_INJECTION_MARKER)
638+
current[key] = "%s%s" % (getUnicode(value).lower(), BOUNDED_INJECTION_MARKER)
639639
else:
640640
current[key] = "%s%s" % (value, BOUNDED_INJECTION_MARKER)
641641
candidates["%s (%s)" % (parameter, key)] = re.sub(r"\b(%s\s*=\s*)%s" % (re.escape(parameter), re.escape(testableParameters[parameter])), r"\g<1>%s" % json.dumps(deserialized), parameters)

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.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.1.12.5"
22+
VERSION = "1.1.12.6"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

txt/checksum.md5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ c0c9a87e5829c76efc69067081edb8b1 lib/controller/checks.py
2525
2db2666dba713c710d248a62b2c1c1fe lib/controller/controller.py
2626
d2cdb9e832e18a81e936ca3348144b16 lib/controller/handler.py
2727
5fb9aaf874daa47ea2b672a22740e56b lib/controller/__init__.py
28-
fd69e56ce20a5a49ce10a7a745022378 lib/core/agent.py
28+
f8a7165253874a9ce0c6e0d089e5fb8c lib/core/agent.py
2929
8d9d771f7e67582c56a96a8d0ccbe4fc lib/core/bigarray.py
30-
d5559313c496c8358640c9646f485a3c lib/core/common.py
30+
b17569e569c6ca695e6a5c063875b322 lib/core/common.py
3131
54326d3a690f8b26fe5a5da1a589b369 lib/core/convert.py
3232
90b1b08368ac8a859300e6fa6a8c796e lib/core/data.py
3333
1c14bdbf47b8dba31f73da9ad731a54a lib/core/datatype.py
@@ -46,7 +46,7 @@ f872699e948d0692ce11b54781da814c lib/core/log.py
4646
760d9df2a27ded29109b390ab202e72d lib/core/replication.py
4747
a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py
4848
02d4762140a72fd44668d3dab5eabda9 lib/core/session.py
49-
f3cab97ab7305ad7ea0347825c4f09b2 lib/core/settings.py
49+
c56f644ba673e1ac93ba180b1283bcc1 lib/core/settings.py
5050
35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py
5151
a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py
5252
d93501771b41315f9fb949305b6ed257 lib/core/target.py

0 commit comments

Comments
 (0)