From de1cf26fe66e33bd9431eff51fa27bfbc1612889 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 9 Nov 2014 18:58:25 +0100 Subject: [PATCH] Minor patch --- lib/core/common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index 3658940a1..b88dbeb9c 100755 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -2871,7 +2871,9 @@ def createGithubIssue(errMsg, excMsg): ex = None errMsg = errMsg[errMsg.find("\n"):] - data = {"title": "Unhandled exception (#%s)" % hashlib.md5(excMsg).hexdigest()[:8], "body": "```%s\n```\n```\n%s```" % (errMsg, excMsg)} + _ = re.sub(r"'[^']+'", "''", excMsg) + + data = {"title": "Unhandled exception (#%s)" % hashlib.md5(_).hexdigest()[:8], "body": "```%s\n```\n```\n%s```" % (errMsg, excMsg)} req = urllib2.Request(url="https://api.github.com/repos/sqlmapproject/sqlmap/issues", data=json.dumps(data), headers={"Authorization": "token %s" % GITHUB_REPORT_OAUTH_TOKEN}) try: