Skip to content

Commit 38684ec

Browse files
committed
Fixes #3403
1 parent 2e5edce commit 38684ec

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

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.2.12.13"
22+
VERSION = "1.2.12.14"
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)

lib/core/target.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,10 @@ def process(match, repl):
408408
message += "Do you want sqlmap to automatically update it in further requests? [y/N] "
409409

410410
if readInput(message, default='N', boolean=True):
411-
conf.csrfToken = getUnicode(parameter)
411+
class _(unicode):
412+
pass
413+
conf.csrfToken = _(re.escape(getUnicode(parameter)))
414+
conf.csrfToken._original = getUnicode(parameter)
412415
break
413416

414417
def _setHashDB():

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
4949
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
5050
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5151
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
52-
e2d4507e4cb26ae64f94d17772f67d8d lib/core/settings.py
52+
0c0d9162f3ec64208c203e7b7e7aaf01 lib/core/settings.py
5353
a971ce157d04de96ba6e710d3d38a9a8 lib/core/shell.py
5454
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
55-
d6da5998fea61068a80d9c671db1095f lib/core/target.py
55+
1581be48127a3a7a9fd703359b6e7567 lib/core/target.py
5656
72d499ca8d792e90a1ebfb2ad2341a51 lib/core/testing.py
5757
cd0067d1798e45f422ce44b98baf57db lib/core/threads.py
5858
c40758411bb0bd68764d78e0bb72bd0f lib/core/unescaper.py

0 commit comments

Comments
 (0)