mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Minor patch
This commit is contained in:
@@ -3516,7 +3516,7 @@ def createGithubIssue(errMsg, excMsg):
|
||||
_ = re.sub(r"(Unicode[^:]*Error:).+", r"\g<1>", _)
|
||||
_ = re.sub(r"= _", "= ", _)
|
||||
|
||||
key = hashlib.md5(_).hexdigest()[:8]
|
||||
key = hashlib.md5(getBytes(_)).hexdigest()[:8]
|
||||
|
||||
if key in issues:
|
||||
return
|
||||
@@ -3551,7 +3551,7 @@ def createGithubIssue(errMsg, excMsg):
|
||||
pass
|
||||
|
||||
data = {"title": "Unhandled exception (#%s)" % key, "body": "```%s\n```\n```\n%s```" % (errMsg, excMsg)}
|
||||
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)})
|
||||
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)})
|
||||
|
||||
try:
|
||||
content = _urllib.request.urlopen(req).read()
|
||||
|
||||
Reference in New Issue
Block a user