Cosmetics

This commit is contained in:
Bernardo Damele 2010-12-07 12:32:58 +00:00
parent 2b2b7dc3a6
commit effd2ca0e3
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -1609,6 +1609,7 @@ def extractRegexResult(regex, content, flags=0):
if regex and content and '?P<result>' in regex:
match = re.search(regex, content, flags)
if match:
retVal = match.group("result")