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

Skip to content

Commit f2cb462

Browse files
committed
Minor patch
1 parent 33b42a1 commit f2cb462

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/core/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3516,7 +3516,7 @@ def createGithubIssue(errMsg, excMsg):
35163516
_ = re.sub(r"(Unicode[^:]*Error:).+", r"\g<1>", _)
35173517
_ = re.sub(r"= _", "= ", _)
35183518

3519-
key = hashlib.md5(_).hexdigest()[:8]
3519+
key = hashlib.md5(getBytes(_)).hexdigest()[:8]
35203520

35213521
if key in issues:
35223522
return
@@ -3551,7 +3551,7 @@ def createGithubIssue(errMsg, excMsg):
35513551
pass
35523552

35533553
data = {"title": "Unhandled exception (#%s)" % key, "body": "```%s\n```\n```\n%s```" % (errMsg, excMsg)}
3554-
req = _urllib.request.Request(url="https://api.github.com/repos/sqlmapproject/sqlmap/issues", data=json.dumps(data), headers={"Authorization": "token %s" % decodeBase64(GITHUB_REPORT_OAUTH_TOKEN, binary=False)})
3554+
req = _urllib.request.Request(url="https://api.github.com/repos/sqlmapproject/sqlmap/issues", data=getBytes(json.dumps(data)), headers={"Authorization": "token %s" % decodeBase64(GITHUB_REPORT_OAUTH_TOKEN, binary=False)})
35553555

35563556
try:
35573557
content = _urllib.request.urlopen(req).read()

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty import six
1919

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

0 commit comments

Comments
 (0)