From c4f09a8e8ad7bef520a46a627ecd22a9110bfc34 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 12 May 2019 04:06:58 +0200 Subject: [PATCH] Bug fix (Github searching for duplicates) --- lib/core/common.py | 2 +- lib/core/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index 241e4d75a..bb1c635c9 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -3653,7 +3653,7 @@ def createGithubIssue(errMsg, excMsg): _excMsg = None errMsg = errMsg[errMsg.find("\n"):] - req = _urllib.request.Request(url="https://api.github.com/search/issues?q=%s" % _urllib.parse.quote("repo:sqlmapproject/sqlmap Unhandled exception (#%s)" % key)) + req = _urllib.request.Request(url="https://api.github.com/search/issues?q=%s" % _urllib.parse.quote("repo:sqlmapproject/sqlmap Unhandled exception (#%s)" % key), headers={HTTP_HEADER.USER_AGENT: fetchRandomAgent()}) try: content = _urllib.request.urlopen(req).read() diff --git a/lib/core/settings.py b/lib/core/settings.py index 23be693af..24755dd33 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.3.5.79" +VERSION = "1.3.5.80" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" 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)