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

Skip to content

Commit 3fde205

Browse files
committed
Generic patch for #2886 (cause still unknown)
1 parent 1822cc0 commit 3fde205

3 files changed

Lines changed: 6 additions & 4 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.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.2.4.19"
22+
VERSION = "1.2.4.20"
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/request/connect.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,10 @@ class _(dict):
430430
method = unicodeencode(method)
431431
req = MethodRequest(url, post, headers)
432432
req.set_method(method)
433-
else:
433+
elif url is not None:
434434
req = urllib2.Request(url, post, headers)
435+
else:
436+
return None, None, None
435437

436438
requestHeaders += "\r\n".join(["%s: %s" % (getUnicode(key.capitalize() if isinstance(key, basestring) else key), getUnicode(value)) for (key, value) in req.header_items()])
437439

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ c9a56e58984420a5abb7a3f7aadc196d lib/core/optiondict.py
4646
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4747
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4848
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
49-
50e82ed2cd620854ce6e74cf18781117 lib/core/settings.py
49+
551c1eba020f0319b9206236b1aeac00 lib/core/settings.py
5050
0dfc2ed40adf72e302291f6ecd4406f6 lib/core/shell.py
5151
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5252
a35efa7bec9f1e6cedf17c9830a79241 lib/core/target.py
@@ -68,7 +68,7 @@ ec4e56bbb1349176b2a22e0b99ba6a55 lib/parse/payloads.py
6868
30eed3a92a04ed2c29770e1b10d39dc0 lib/request/basicauthhandler.py
6969
596988f14408cde1a2d3b5c9f231873a lib/request/basic.py
7070
c0cabedead14b8a23353b606672cff42 lib/request/comparison.py
71-
e2b40b94446d59fb25abe68c429bae74 lib/request/connect.py
71+
5b7f216827207c085df96bb56ed5e600 lib/request/connect.py
7272
dd4598675027fae99f2e2475b05986da lib/request/direct.py
7373
2044fce3f4ffa268fcfaaf63241b1e64 lib/request/dns.py
7474
eee965d781546d05f36cfd14af050913 lib/request/httpshandler.py

0 commit comments

Comments
 (0)