mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Whitespace was being double encoded in case of spaceplus (' '->%2B)
This commit is contained in:
parent
3710a7051b
commit
e8c1c90f2e
|
@ -669,7 +669,7 @@ class Connect(object):
|
|||
else:
|
||||
# GET, POST, URI and Cookie payload needs to be throughly URL encoded
|
||||
if place in (PLACE.GET, PLACE.URI, PLACE.COOKIE) and not conf.skipUrlEncode or place in (PLACE.POST, PLACE.CUSTOM_POST) and kb.postUrlEncode:
|
||||
payload = urlencode(payload, '%', False, place != PLACE.URI, place in (PLACE.POST, PLACE.CUSTOM_POST) and kb.postUrlEncode and kb.postSpaceToPlus)
|
||||
payload = urlencode(payload, '%', False, place != PLACE.URI) # spaceplus is handled down below
|
||||
value = agent.replacePayload(value, payload)
|
||||
|
||||
if conf.hpp:
|
||||
|
|
Loading…
Reference in New Issue
Block a user