From e8c1c90f2eb6d1a396075f0ecd4ea791abee7255 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 25 Mar 2014 22:02:14 +0100 Subject: [PATCH] Whitespace was being double encoded in case of spaceplus (' '->%2B) --- lib/request/connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request/connect.py b/lib/request/connect.py index 8d9634c19..4d220adc9 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -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: