mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 08:14:24 +03:00
Minor cleanup
This commit is contained in:
parent
8e7449ccd5
commit
5a91b6e622
|
@ -595,12 +595,9 @@ class Connect:
|
|||
value = agent.replacePayload(value, payload)
|
||||
|
||||
else:
|
||||
# payloads in GET and/or POST need to be urlencoded
|
||||
# throughly without safe chars (especially & and =)
|
||||
# addendum: as we support url encoding in tampering
|
||||
# functions therefore we need to use % as a safe char
|
||||
if place != PLACE.URI or (value and payload and '?' in value and value.find('?') < value.find(payload)):
|
||||
payload = urlencode(payload, '%', False, True) if place not in (PLACE.POST, PLACE.CUSTOM_POST) and not skipUrlEncode else payload
|
||||
# GET, URI and Cookie need to be throughly URL encoded (POST is encoded down below)
|
||||
payload = urlencode(payload, '%', False, True) if place in (PLACE.GET, PLACE.COOKIE, PLACE.URI) and not skipUrlEncode else payload
|
||||
value = agent.replacePayload(value, payload)
|
||||
|
||||
if place:
|
||||
|
|
Loading…
Reference in New Issue
Block a user