mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-07 17:23:46 +03:00
Minor patch
This commit is contained in:
parent
cb5dc41277
commit
81fba74e6a
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
||||||
from thirdparty import six
|
from thirdparty import six
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.3.5.15"
|
VERSION = "1.3.5.16"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
|
@ -420,7 +420,9 @@ class Connect(object):
|
||||||
value = re.sub(r"(%s)([^ \t])" % char, r"\g<1>\t\g<2>", value)
|
value = re.sub(r"(%s)([^ \t])" % char, r"\g<1>\t\g<2>", value)
|
||||||
headers[getBytes(key)] = getBytes(value.strip("\r\n"))
|
headers[getBytes(key)] = getBytes(value.strip("\r\n"))
|
||||||
|
|
||||||
url = getBytes(url)
|
if six.PY2:
|
||||||
|
url = getBytes(url) # Note: Python3 requires text while Python2 has problems when mixing text with binary POST
|
||||||
|
|
||||||
post = getBytes(post)
|
post = getBytes(post)
|
||||||
|
|
||||||
if websocket_:
|
if websocket_:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user