From effd2ca0e3ec8f6b80182ce9e3c08051f46dfe61 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Tue, 7 Dec 2010 12:32:58 +0000 Subject: [PATCH] Cosmetics --- lib/core/agent.py | 4 ++-- lib/core/common.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index 075f1e058..65c0bc281 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -219,8 +219,8 @@ class Agent: inferenceQuery = queries[kb.misc.testedDbms].inference.query payload = payload.replace("[INFERENCE]", inferenceQuery) else: - errMsg = "invalid usage of inference payload without knowledge " - errMsg += "of underlying DBMS" + errMsg = "invalid usage of inference payload without " + errMsg += "knowledge of underlying DBMS" raise sqlmapNoneDataException, errMsg return payload diff --git a/lib/core/common.py b/lib/core/common.py index 66d287e71..ef085000f 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1609,6 +1609,7 @@ def extractRegexResult(regex, content, flags=0): if regex and content and '?P' in regex: match = re.search(regex, content, flags) + if match: retVal = match.group("result")