Whitespace was being double encoded in case of spaceplus (' '->%2B)

This commit is contained in:
Miroslav Stampar 2014-03-25 22:02:14 +01:00
parent 3710a7051b
commit e8c1c90f2e

View File

@ -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: