File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ e376093d4f6e42ee38b050af329179df9c1c136b7667b2f1cb559f5d4b69ebd9 lib/controller
1681681966ca704961fb987ab757f0a4afddbf841d1a880631b701487c75cef63d60c3 lib/controller/__init__.py
1691692a96190ced25d8929861b13866101812fcadf5cac23dd1dd4b29b1a915918769 lib/core/agent.py
1701701da4ec9cd9b67c8b54e4a3d314f8237d58778d8f3a00bc26a1e0540294dca30f lib/core/bigarray.py
171- a71a00c5c3efbc259087d90358a0665af15034454455dbd5b02b7451748f7371 lib/core/common.py
171+ 3324bcf3da983e8ca8d34fc1123b32706056e7158aaa2c274fa1560b1f377889 lib/core/common.py
172172a6397b10de7ae7c56ed6b0fa3b3c58eb7a9dbede61bf93d786e73258175c981e lib/core/compat.py
173173a9997e97ebe88e0bf7efcf21e878bc5f62c72348e5aba18f64d6861390a4dcf2 lib/core/convert.py
174174c03dc585f89642cfd81b087ac2723e3e1bb3bfa8c60e6f5fe58ef3b0113ebfe6 lib/core/data.py
@@ -189,7 +189,7 @@ e18c0c2c5a57924a623792a48bfd36e98d9bc085f6db61a95fc0dc8a3bcedc0c lib/core/decor
18918948797d6c34dd9bb8a53f7f3794c85f4288d82a9a1d6be7fcf317d388cb20d4b3 lib/core/replication.py
1901903574639db4942d16a2dc0a2f04bb7c0913c40c3862b54d34c44075a760e0c194 lib/core/revision.py
191191888daba83fd4a34e9503fe21f01fef4cc730e5cde871b1d40e15d4cbc847d56c lib/core/session.py
192- 0e42cf73431ee75dd647815b5161b8422044f912f4533e04385e1a8aa5a1fa9a lib/core/settings.py
192+ 9d05d48a24cf166f965ae95e63a57e92061bc84bb1fc2b3fe1c5ee985e17b453 lib/core/settings.py
193193cd5a66deee8963ba8e7e9af3dd36eb5e8127d4d68698811c29e789655f507f82 lib/core/shell.py
194194bcb5d8090d5e3e0ef2a586ba09ba80eef0c6d51feb0f611ed25299fbb254f725 lib/core/subprocessng.py
195195d35650179816193164a5f177102f18379dfbe6bb6d40fbb67b78d907b41c8038 lib/core/target.py
Original file line number Diff line number Diff line change @@ -1411,7 +1411,7 @@ def parseJson(content):
14111411 """
14121412 This function parses POST_HINT.JSON and POST_HINT.JSON_LIKE content
14131413
1414- >>> parseJson("{'id':1}")["id"] == 1
1414+ >>> parseJson("{'id':1, 'foo':[2,3,4] }")["id"] == 1
14151415 True
14161416 >>> parseJson('{"id":1}')["id"] == 1
14171417 True
@@ -1429,10 +1429,10 @@ def parseJson(content):
14291429 if quote == '"' :
14301430 retVal = json .loads (content )
14311431 elif quote == "'" :
1432- content = content . replace ( '"' , ' \\ "' )
1433- content = content . replace (" \\ '" , BOUNDARY_BACKSLASH_MARKER )
1434- content = content . replace ( "'" , '"' )
1435- content = content . replace ( BOUNDARY_BACKSLASH_MARKER , "'" )
1432+ def _ ( match ):
1433+ return '"%s"' % match . group ( 1 ). replace ('"' , ' \\ "' )
1434+
1435+ content = re . sub ( r"'((?:[^'\\]|\\.)*)'" , _ , content )
14361436 retVal = json .loads (content )
14371437 except :
14381438 pass
Original file line number Diff line number Diff line change 1919from thirdparty import six
2020
2121# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22- VERSION = "1.10.1.50 "
22+ VERSION = "1.10.1.51 "
2323TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2424TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2525VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
You can’t perform that action at this time.
0 commit comments