mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
fix for a bug reported by -insane-
This commit is contained in:
parent
11996ce12e
commit
88faedc0fe
|
@ -2401,7 +2401,11 @@ def removeReflectiveValues(content, payload):
|
|||
payload = payload.replace(PAYLOAD_DELIMITER, '')
|
||||
|
||||
regex = filterStringValue(payload, r'[A-Za-z0-9]', r'[^\s]+')
|
||||
retVal = re.sub(regex, REFLECTED_VALUE_MARKER, content)
|
||||
|
||||
while r'[^\s]+[^\s]+' in regex:
|
||||
regex = regex.replace(r'[^\s]+[^\s]+', r'[^\s]+')
|
||||
|
||||
retVal = re.compile(regex).sub(REFLECTED_VALUE_MARKER, content)
|
||||
|
||||
if retVal != content:
|
||||
debugMsg = "reflective value found and filtered out"
|
||||
|
|
Loading…
Reference in New Issue
Block a user