mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Fixes #2640
This commit is contained in:
parent
62ae149464
commit
68ee1f361b
4 changed files with 12 additions and 12 deletions
|
|
@ -1985,7 +1985,7 @@ def getSQLSnippet(dbms, sfile, **variables):
|
|||
retVal = re.sub(r";\s+", "; ", retVal).strip("\r\n")
|
||||
|
||||
for _ in variables.keys():
|
||||
retVal = re.sub(r"%%%s%%" % _, variables[_], retVal)
|
||||
retVal = re.sub(r"%%%s%%" % _, variables[_].replace('\\', r'\\'), retVal)
|
||||
|
||||
for _ in re.findall(r"%RANDSTR\d+%", retVal, re.I):
|
||||
retVal = retVal.replace(_, randomStr())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue