mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Bug fix (payload escaping in XML payloads)
This commit is contained in:
parent
8d608dfdfe
commit
2bb5ba7fa2
3 changed files with 3 additions and 3 deletions
|
|
@ -103,7 +103,7 @@ class ReqHandler(BaseHTTPRequestHandler):
|
|||
if self.data.startswith('{') and self.data.endswith('}'):
|
||||
params.update(json.loads(self.data))
|
||||
elif self.data.startswith('<') and self.data.endswith('>'):
|
||||
params.update(dict(re.findall(r'name="([^"]+)" value="([^"]*)"', self.data)))
|
||||
params.update(dict((_[0], _[1].replace("'", "'").replace(""", '"').replace("<", '<').replace(">", '>').replace("&", '&')) for _ in re.findall(r'name="([^"]+)" value="([^"]*)"', self.data)))
|
||||
else:
|
||||
params.update(parse_qs(self.data))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue