mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-06 16:53:44 +03:00
Minor bug fix
This commit is contained in:
parent
264247d318
commit
2a2f949275
|
@ -624,13 +624,15 @@ class Agent:
|
||||||
|
|
||||||
if inpStr:
|
if inpStr:
|
||||||
if urlencode_:
|
if urlencode_:
|
||||||
regObj = getCompiledRegex("%s(?P<result>.*?)%s" % (PAYLOAD_DELIMITER, PAYLOAD_DELIMITER))
|
regObj = getCompiledRegex("(?P<result>%s.*?%s)" % (PAYLOAD_DELIMITER, PAYLOAD_DELIMITER))
|
||||||
|
|
||||||
for match in regObj.finditer(inpStr):
|
for match in regObj.finditer(inpStr):
|
||||||
retVal = retVal.replace(match.group("result"), urlencode(match.group("result"), convall=True))
|
retVal = retVal.replace(match.group("result"), urlencode(match.group("result").strip(PAYLOAD_DELIMITER), convall=True))
|
||||||
else:
|
else:
|
||||||
retVal = retVal.replace(PAYLOAD_DELIMITER, '')
|
retVal = retVal.replace(PAYLOAD_DELIMITER, '')
|
||||||
|
|
||||||
|
print retVal
|
||||||
|
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
def extractPayload(self, inpStr):
|
def extractPayload(self, inpStr):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user