mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-23 03:14:28 +03:00
Minor bug fix: there will always be only one pair of delimiters as we add it for each place
This commit is contained in:
parent
3a48bee9b0
commit
6afc9bffaa
|
@ -623,13 +623,10 @@ class Agent:
|
|||
retVal = inpStr
|
||||
|
||||
if inpStr:
|
||||
if urlencode_:
|
||||
regObj = getCompiledRegex("(?P<result>%s.*?%s)" % (PAYLOAD_DELIMITER, PAYLOAD_DELIMITER))
|
||||
retVal = retVal.replace(PAYLOAD_DELIMITER, '')
|
||||
|
||||
for match in regObj.finditer(inpStr):
|
||||
retVal = retVal.replace(match.group("result"), urlencode(match.group("result")[1:-1], convall=True))
|
||||
else:
|
||||
retVal = retVal.replace(PAYLOAD_DELIMITER, '')
|
||||
if urlencode_:
|
||||
retVal = urlencode(retVal)
|
||||
|
||||
return retVal
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user